Documentation ¶ Index ¶ func ValidateStruct(s interface{}) error type Ipv4List type Subnet func (s Subnet) Unwrap() *xnet.IPNet type UrlList Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ValidateStruct ¶ func ValidateStruct(s interface{}) error Types ¶ type Ipv4List ¶ type Ipv4List []string type Subnet ¶ type Subnet string TODO(nikonov): probably it will be better to implement this type as a complex struct with the UnmarshaText method. This way we will have an ability to store IP and mask separately, so perform operations on IPs/ranges in a more convenient way. func (Subnet) Unwrap ¶ func (s Subnet) Unwrap() *xnet.IPNet type UrlList ¶ type UrlList []string Source Files ¶ View all Source files validators.go Click to show internal directories. Click to hide internal directories.