package
0.0.0-20250304201544-e5f78fe3ede9
Repository: https://github.com/kubernetes/kube-openapi.git
Documentation: pkg.go.dev
# Functions
IsBase64 check if a string is base64 encoded.
IsCreditCard check if the string is a credit card.
IsHexcolor check if the string is a hexadecimal color.
IsInt check if the string is an integer.
IsIPv6 check if the string is an IP version 6.
IsISBN check if the string is an ISBN (version 10 or 13).
IsISBN10 check if the string is an ISBN version 10.
IsISBN13 check if the string is an ISBN version 13.
IsMAC check if a string is valid MAC address.
IsNull check if the string is null.
IsRequestURI check if the string rawurl, assuming it was received in an HTTP request, is an absolute URI or an absolute path.
IsRGBcolor check if the string is a valid RGB color in form rgb(RRR, GGG, BBB).
IsSSN will validate the given string as a U.S.
ToInt convert the input string or any int type to an integer type 64, or 0 if the input is not an integer.
# Constants
Basic regular expressions for validating strings.
Basic regular expressions for validating strings.
Basic regular expressions for validating strings.
Basic regular expressions for validating strings.
Basic regular expressions for validating strings.
Basic regular expressions for validating strings.
Basic regular expressions for validating strings.
Basic regular expressions for validating strings.