Documentation
¶
Index ¶
- Variables
- type Rule
- func Alpha() Rule
- func Alphanumeric() Rule
- func Between(min, max float64) Rule
- func ContainsDigit() Rule
- func ContainsLower() Rule
- func ContainsSpecial() Rule
- func ContainsUpper() Rule
- func Date() Rule
- func DateTime() Rule
- func Email() Rule
- func EndsWith(suffix string) Rule
- func ExactLen(n int) Rule
- func GreaterThan(n float64) Rule
- func IP() Rule
- func IPv4() Rule
- func IPv6() Rule
- func LessThan(n float64) Rule
- func MaxLen(n int) Rule
- func MaxValue(n float64) Rule
- func MinLen(n int) Rule
- func MinValue(n float64) Rule
- func Numeric() Rule
- func RegexMatch(pattern string) Rule
- func Required() Rule
- func Rules(rules ...Rule) []Rule
- func StartsWith(prefix string) Rule
- func Time() Rule
- func URL() Rule
- func UUID() Rule
- type Schema
Constants ¶
This section is empty.
Variables ¶
View Source
var Types = map[reflect.Kind]string{ reflect.Invalid: "invalid", reflect.Bool: "bool", reflect.Int: "int", reflect.Int8: "int8", reflect.Int16: "int16", reflect.Int32: "int32", reflect.Int64: "int64", reflect.Uint: "uint", reflect.Uint8: "uint8", reflect.Uint16: "uint16", reflect.Uint32: "uint32", reflect.Uint64: "uint64", reflect.Uintptr: "uintptr", reflect.Float32: "float32", reflect.Float64: "float64", reflect.Complex64: "complex64", reflect.Complex128: "complex128", reflect.Array: "array", reflect.Chan: "chan", reflect.Func: "func", reflect.Interface: "interface", reflect.Map: "map", reflect.Pointer: "pointer", reflect.Slice: "slice", reflect.String: "string", reflect.Struct: "struct", reflect.UnsafePointer: "unsafe_pointer", }
Functions ¶
This section is empty.
Types ¶
type Rule ¶
func Alphanumeric ¶
func Alphanumeric() Rule
func ContainsDigit ¶
func ContainsDigit() Rule
func ContainsLower ¶
func ContainsLower() Rule
func ContainsSpecial ¶
func ContainsSpecial() Rule
func ContainsUpper ¶
func ContainsUpper() Rule
func GreaterThan ¶
func RegexMatch ¶
func StartsWith ¶
Click to show internal directories.
Click to hide internal directories.