Documentation ¶ Index ¶ type Result func Struct(obj any, fieldNameMap map[string]string) Result func (result Result) CheckFieldWhen(when string, check func(fieldName string) bool) error func (result Result) CheckWhen(when string) error func (result Result) IsError() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Result ¶ type Result struct { // contains filtered or unexported fields } func Struct ¶ func Struct(obj any, fieldNameMap map[string]string) Result func (Result) CheckFieldWhen ¶ added in v1.1.0 func (result Result) CheckFieldWhen(when string, check func(fieldName string) bool) error func (Result) CheckWhen ¶ added in v1.1.0 func (result Result) CheckWhen(when string) error func (Result) IsError ¶ func (result Result) IsError() bool Source Files ¶ View all Source files validate.go Click to show internal directories. Click to hide internal directories.