You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
315 B
18 lines
315 B
6 years ago
|
package query
|
||
|
|
||
|
// Preloader is a filter to skip the result
|
||
|
type Preloader interface {
|
||
|
Preload() []string
|
||
|
}
|
||
|
|
||
|
// Preload is a simple implementation of the Skipper filter
|
||
|
type Preload []string
|
||
|
|
||
|
var _ Preloader = Preload{}
|
||
|
|
||
|
// Preload returns a preload list
|
||
|
func (l Preload) Preload() []string {
|
||
|
|
||
|
return Preload(l)
|
||
|
}
|