Documentation ¶
Index ¶
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 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.
Click to show internal directories.
Click to hide internal directories.