package
1.0.2-rc1
Repository: https://github.com/zrhoffman/trafficcontrol.git
Documentation: pkg.go.dev

# Functions

IsAlphanumericDash returns true if the string consists of only alphanumeric or dash characters.
IsAlphanumericUnderscoreDash returns true if the string consists of only alphanumeric, underscore, or dash characters.
No description provided by the author
IsOneOfString generates a validator function returning whether string is in the set of strings.
IsOneOfStringICase is a case-insensitive version of IsOneOfString.
IsPtrToSliceOfUniqueStringersICase returns a validator function which returns an error if the argument is a non-nil pointer to a slice of Stringers whose String() values are not in the set of strings or there are duplicate strings.
No description provided by the author
No description provided by the author
NewDBExistsRule is a validation rule that checks if the given value is in the column in this table.
NewDBUniqueRule is a validation rule that checks if the given value is in the column in this table.
NoLineBreaks returns true if the string has no line breaks.
NoPeriods returns true if the string has no periods.
NoSpaces returns true if the string has no spaces.
StringIsValidFloat returns a reference to a validation.StringRule function that only returns true if the string value given string argument can be parsed to a 64-bit float that is not NaN.
ToErrors - Flips to an array of errors.

# Structs

DBExistsRule checks if value is in column in this table TODO: DBExistsRule ? what about DBUniqueRule?.
DBUniqueRule checks if value is in column in this table TODO: DBUniqueRule ? what about DBUniqueRule?.