2018-05-29 13:42:41 +00:00
|
|
|
package main
|
|
|
|
|
2018-10-02 09:10:21 +00:00
|
|
|
import (
|
|
|
|
"git.xdrm.io/go/aicra/driver"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {}
|
|
|
|
func Export() driver.Checker { return new(AnyChecker) }
|
|
|
|
|
|
|
|
type AnyChecker int
|
|
|
|
|
2018-07-08 23:34:21 +00:00
|
|
|
// Match matches the string 'any'
|
2018-10-02 09:10:21 +00:00
|
|
|
func (ack AnyChecker) Match(name string) bool {
|
2018-05-29 13:42:41 +00:00
|
|
|
return name == "any"
|
|
|
|
}
|
|
|
|
|
2018-07-08 23:34:21 +00:00
|
|
|
// Check always returns true
|
2018-10-02 09:10:21 +00:00
|
|
|
func (ack AnyChecker) Check(value interface{}) bool {
|
2018-05-29 13:42:41 +00:00
|
|
|
return true
|
|
|
|
}
|