Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
Validate struct by field's tag. the tags currently supported as below:
string: required, digit, ip4addr, ip6addr, ip4net, ip6net, netmask, macaddr, domain, url, port, date, datetime, time
int: nonzero, positive, negative, gte0, lte0, port
uint: nonzero, positive, port
float: nonzero, positive, negative, gte0, lte0
pointer: required and actual type's tag
func ValidateTag ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.