Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0ffe57bc0c
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.438 kB
package mongo
import "github.com/ungerik/go-start/mgo"
///////////////////////////////////////////////////////////////////////////////
// limitQuery
type limitQuery struct {
queryBase
limit int
}
func (self *limitQuery) mongoQuery() (q *mgo.Query, err error) {
q, err = self.parentQuery.mongoQuery()
if err != nil {
return nil, err
}
return q.Limit(self.limit), nil
}
func (self *limitQuery) Selector() string {
return ""
}
Jump to Line
Something went wrong with that request. Please try again.