Documentation ¶
Overview ¶
Code in this file generated by gokay: github.com/zencoder/gokay
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomGenerator ¶
func NewCustomGenerator() *gkgen.ValidateGenerator
To run: `gokay gkexample NewCustomGenerator`
Types ¶
type Example ¶
type Example struct {
MapOfInterfaces map[string]interface{} `valid:"NotNil"`
}
Example
type ExampleStruct ¶
type ExampleStruct struct { HexStringPtr *string `valid:"Length=(16),NotNil,Hex"` HexString string `valid:"Length=(12),Hex"` BCP47StringPtr *string `valid:"NotNil,BCP47"` BCP47String string `valid:"BCP47"` CanBeNilWithConstraints *string `valid:"Length=(12)"` BCP47NonString int BCP47NonStringPtr *int }
ExampleStruct def with tags
func (ExampleStruct) Validate ¶
func (s ExampleStruct) Validate() error
type HasValidateImplicit ¶
type HasValidateImplicit struct { InvalidStruct *TestValidate ValidStruct AlwaysValid MapOfStruct map[string]TestValidate MapOfStructPtrs map[string]*TestValidate MapOfMaps map[string]map[string]*TestValidate MapMapsOfSlices map[string]map[string][]*TestValidate MapOfInterfaces map[string]interface{} SimpleSlice []*TestValidate SliceOfSlicesOfSlices [][][]*TestValidate MapOfSlicesOfMaps map[string][]map[string]*TestValidate }
type NoImplicitValidate ¶
type NotNilTestStruct ¶
Click to show internal directories.
Click to hide internal directories.