Versions in this module Expand all Collapse all v0 v0.1.10 Apr 13, 2018 v0.1.9 Jan 16, 2018 Changes in this version + func IsCIDR(i interface{}, others map[string]interface{}) error + func IsFilepath(i interface{}, others map[string]interface{}) error + func IsIP(i interface{}, others map[string]interface{}) (err error) + func IsInEnumIgnoreCase(items ...string) validatorFunc + func List(r Rule) (required []string, optionals []string, suggested []string) + func MaxLengthOf(l int) validatorFunc + func MinLengthOf(l int) validatorFunc + func Run(r Rule, input []string) error + func SpecBuilder(r Rule, vs ...Validators) *specBuilder + func Suggested(s ...string) (sugs []suggested) + func Validate(all Validators, paramValues map[string]interface{}) error + type Reducer interface + Keys func() []string + Reduce func(map[string]interface{}) (map[string]interface{}, error) + type Rule interface + Missing func(input []string) []string + Required func() []string + Run func(input []string) error + String func() string + Visit func(func(Rule)) + func AllOf(rules ...Rule) Rule + func AtLeastOneOf(rules ...Rule) Rule + func Key(k string) Rule + func None() Rule + func OnlyOneOf(rules ...Rule) Rule + func Opt(i ...interface{}) Rule + type Spec interface + Reducers func() []Reducer + Rule func() Rule + Validators func() Validators + func NewSpec(r Rule, vs ...Validators) Spec + type Validators map[string]validatorFunc