Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2026 Changes in this version + func HasInt(s string) bool + func IsIPRange(ip string) bool + func IsIPv4Address(ip string) bool + func IsIPv4AddressWithMask(data string) bool + func IsIPv6Address(ip string) bool + func IsIPv6AddressWithMask(data string) bool + func IsInt(s string) bool + type Ipv4Validator struct + func (v Ipv4Validator) Validate(data map[string]interface{}) Result + type Ipv6Validator struct + func (v Ipv6Validator) Validate(data map[string]interface{}) Result + type Result interface + AddError func(Result) + Msg func() string + Status func() bool + func NewValidateResult(status bool, msg string) Result + type ValidateChain struct + Chain []Validator + func NewValidateChain() *ValidateChain + func (vc *ValidateChain) Add(validator Validator) + func (vc *ValidateChain) StopOnError() *ValidateChain + func (vc *ValidateChain) Validate(data map[string]interface{}) Result + type Validator interface + Validate func(data map[string]interface{}) Result