LoadStream function

This commit is contained in:
Nikita Tokarchuk
2018-12-09 17:20:28 +01:00
parent 913dcb2f1e
commit e40cac29e8
2 changed files with 84 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package query
// Limiter is a filter to limit the result
type Limiter interface {
Limit() int
}
// Limit is a simple implementation of the Limiter filter
type Limit int
var _ Limiter = Limit(0)
// Limit returns a limit
func (l Limit) Limit() int {
return int(l)
}