Documentation ¶
Index ¶
- func ArgBoolOrFalse(args map[string]interface{}, argName string) bool
- func ArgStringOrBlank(args map[string]interface{}, argName string) string
- func ArgStringsOrBlank(args map[string]interface{}, argName string) []string
- func ValidateASNumber(str string) numorstring.ASNumber
- func ValidateIP(str string) cnet.IP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgBoolOrFalse ¶
ArgBoolOrFalse returns the requested argument as a boolean, or as false if the argument is not present.
func ArgStringOrBlank ¶
ArgStringOrBlank returns the requested argument as a string, or as a blank string if the argument is not present.
func ArgStringsOrBlank ¶
ArgStringsOrBlank returns the requested argument as a []string, or as a []string{""} if the argument is not present.
func ValidateASNumber ¶
func ValidateASNumber(str string) numorstring.ASNumber
ValidateASNumber takes a string as an input and makes sure it's a valid ASNumber. Returns the parsed ASNumber, and prints error and exits if not.
func ValidateIP ¶
ValidateIP takes a string as an input and makes sure it's a valid IPv4 or IPv6 address. Returns the parsed IP, and prints error and exits if not valid.
Types ¶
This section is empty.