Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asaskevich/govalidator
/ types & classes
Types & classes
58 in github.com/asaskevich/govalidator
⨍
Functions
388
◇
Types & classes
58
↓ 4 callers
FuncType
CustomTypeValidator
CustomTypeValidator is a wrapper for validator functions that returns bool and accepts any type. The second parameter should be the context (in the ca
types.go:15
↓ 2 callers
FuncType
Validator
Validator is a wrapper for a validator function that returns bool and accepts string.
types.go:11
Struct
Address
validator_test.go:2459
FuncType
ConditionIterator
ConditionIterator is the function that accepts element of slice/array and its index and returns boolean
arrays.go:10
TypeAlias
CustomByteArray
validator_test.go:2706
Struct
CustomMessage
make sure validators with custom messages don't show up in the validator string
validator_test.go:3699
Struct
EmptyIsInStruct
validator_test.go:2937
Struct
EmptyRequiredIsInStruct
validator_test.go:2911
Struct
Error
Error encapsulates a name, an error and whether there's a custom error message or not.
error.go:26
TypeAlias
Errors
Errors is an array of multiple errors and conforms to the error interface.
error.go:9
Struct
EvenMoreNestedStruct
validator_test.go:2975
Struct
FieldRequiredByDefault
validator_test.go:2529
Struct
FieldsRequiredByDefaultButExemptOrOptionalStruct
validator_test.go:2543
Struct
FieldsRequiredByDefaultButExemptStruct
validator_test.go:2538
Struct
FunkyIsInStruct
validator_test.go:3055
Struct
ISO3166Entry
ISO3166Entry stores country codes
types.go:172
Struct
ISO693Entry
ISO693Entry stores ISO language codes
types.go:464
FuncType
InterfaceParamValidator
InterfaceParamValidator is a wrapper for functions that accept variants parameters for an interface value
types.go:21
Struct
InvalidStruct
validator_test.go:2662
Struct
IsInStruct
TODO: this testcase should be fixed type StringMatchesComplexStruct struct { StringMatches string `valid:"matches(^\\$\\([\"']\\w+[\"']\\)$)"` }
validator_test.go:2514
FuncType
Iterator
Iterator is the function that accepts element of slice/array and its index
arrays.go:4
Struct
LengthStruct
validator_test.go:2497
Struct
MessageWithSeveralFieldsStruct
validator_test.go:2548
Struct
MissingValidationDeclarationStruct
validator_test.go:2524
Struct
MultipleFieldsRequiredByDefault
validator_test.go:2533
Struct
NegationStruct
validator_test.go:2492
Struct
NestedStruct
validator_test.go:2978
Struct
OuterStruct
validator_test.go:2984
FuncType
ParamValidator
ParamValidator is a wrapper for validator functions that accept additional parameters.
types.go:18
Struct
Post
validator_test.go:2518
Struct
PrivateStruct
validator_test.go:2482
FuncType
ReduceIterator
ReduceIterator is the function that accepts two element of slice/array and returns result of merging those values
arrays.go:13
Struct
RequiredIsInStruct
validator_test.go:2885
FuncType
ResultIterator
ResultIterator is the function that accepts element of slice/array and its index and returns any result
arrays.go:7
Struct
StringLengthStruct
validator_test.go:2501
Struct
StringMatchesStruct
validator_test.go:2505
Struct
StructCapital
validator_test.go:3548
Struct
StructLower
validator_test.go:3559
Struct
StructWithCustomAndBuiltinValidator
validator_test.go:2682
Struct
StructWithCustomByteArray
validator_test.go:2708
Struct
StructWithCustomValidation
validator_test.go:3359
Struct
Test1
validator_test.go:3444
Struct
Test2
validator_test.go:3473
Struct
Test3
validator_test.go:3509
Struct
UnsupportedTypeError
UnsupportedTypeError is a wrapper for reflect.Type
types.go:44
Struct
User
validator_test.go:2464
Struct
UserValid
validator_test.go:2473
Struct
UserWithPointers
validator_test.go:3391
Struct
ValidStruct
validator_test.go:2674
Struct
customTypeTagMap
types.go:88
TypeAlias
stringValues
stringValues is a slice of reflect.Value holding *reflect.StringValue. It implements the methods to sort by string.
types.go:50
Struct
tagOption
types.go:37
TypeAlias
tagOptionsMap
types.go:22
TypeAlias
testByteArray
validator_test.go:3145
TypeAlias
testByteMap
validator_test.go:3146
TypeAlias
testByteSlice
validator_test.go:3147
TypeAlias
testStringIntMap
validator_test.go:3149
TypeAlias
testStringStringMap
validator_test.go:3148