{"modulePath":"github.com/libtnb/validator","version":"v0.6.0","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/libtnb/validator","name":"validator","synopsis":"Package validator validates structs, maps, JSON documents, form values and single values against boolean rule expressions, and binds validated input into structs.","isRedistributable":true},{"path":"github.com/libtnb/validator/_examples","name":"main","synopsis":"Command examples is a runnable validator demo; the leading-underscore dir is skipped by the go tool, so run it directly: go run ./_examples","isRedistributable":true},{"path":"github.com/libtnb/validator/conv","name":"conv","synopsis":"Package conv converts loosely typed input (form strings, decoded JSON, named scalar types) into Go values without silent data loss: overflow, non-finite floats and unparsable strings return errors wrapping ErrConvert, and float-to-integer conversion truncates toward zero.","isRedistributable":true},{"path":"github.com/libtnb/validator/internal/dsl","name":"dsl","synopsis":"Package dsl is the rule-expression engine behind the validator: a lexer, a parser with precedence ! \u003e \u0026\u0026 \u003e ||, the AST the compiler consumes, and the token-level helpers (dive splitting, top-level leaf removal, top-level || detection) that let the validator edit expressions without re-parsing them as text.","isRedistributable":true},{"path":"github.com/libtnb/validator/is","name":"is","synopsis":"Package is provides pure syntax predicates for common string formats: network addresses, identifiers, encodings and coordinates.","isRedistributable":true},{"path":"github.com/libtnb/validator/translations","name":"translations","synopsis":"Package translations provides localized message templates for the validator's built-in rules, keyed by rule signature, for use with validator.WithTranslation.","isRedistributable":true}],"total":6}}
