Versions in this module Expand all Collapse all v0 v0.1.0 Jan 14, 2024 Changes in this version + const AssetDebug + const OZZO_VALIDATOR_TEMPLATE + const OZZO_VALIDATOR_TEST_TEMPLATE + func Asset(name string) ([]byte, error) + func AssetDigest(name string) ([sha256.Size]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func AssetString(name string) (string, error) + func Digests() (map[string][sha256.Size]byte, error) + func MustAsset(name string) []byte + func MustAssetString(name string) string + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type TestData struct + Invalid map[string]TypedList + Testing bool + Valid map[string]TypedList + type TypedList struct + Float []float32 + Int []int + String []string + type ValidateIsRule struct + ASCII bool + Alpha bool + Alphanumeric bool + Base64 bool + CountryCode2 bool + CountryCode3 bool + CreditCard bool + DNSName bool + DataURI bool + DialString bool + Digit bool + Domain bool + E164 bool + Email bool + EmailFormat bool + Float bool + FullWidth bool + HalfWidth bool + HexColor bool + Hexadecimal bool + Host bool + IP bool + IPv4 bool + IPv6 bool + ISBN bool + ISBN10 bool + ISBN13 bool + Int bool + JSON bool + Latitude bool + Longitude bool + LowerCase bool + MAC bool + MongoID bool + Multibyte bool + Port bool + PrintableASCII bool + RGBColor bool + RequestURI bool + RequestURL bool + SSN bool + Semver bool + Subdomain bool + URL bool + UTFDigit bool + UTFLetter bool + UTFLetterNumeric bool + UTFNumeric bool + UUID bool + UUIDv3 bool + UUIDv4 bool + UUIDv5 bool + UpperCase bool + VariableWidth bool + type ValidateProject struct + ForTest bool + MethodName string + Template string + TemplateTest string + Type string + Validators map[string]ValidateStruct + func ParseToml(tomlPath string) (*ValidateProject, error) + func (vp *ValidateProject) Generate() error + func (vp *ValidateProject) GenerateWithTemplate(template_path string) error + func (vp ValidateProject) Validate() error + type ValidateProperty struct + Name string + Type string + func (vp ValidateProperty) Validate() error + type ValidateRule struct + Date string + Each []ValidateRule + Else []ValidateRule + Empty bool + In TypedList + Length []int + Match string + MultipleOf []TypedList + Nil bool + NilOrNotEmpty bool + NotIn TypedList + NotNil bool + Required bool + RuneLength []int + type ValidateStruct struct + Dir string + FileMode int + FileName string + Import []string + MethodName string + Name string + Package string + Properties map[string]ValidateProperty + Receiver string + TestData TestData + func (vs ValidateStruct) Validate() error