Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum int
Enum is an enum defining IP versions
func FromString ¶
FromString returns an Enum corresponding to the string parameter This method is intended to be used from validated input.
func Parse ¶
Parse returns an Enum corresponding to the string parameter If the string doesn't correspond to any Enum, returns an error (nil otherwise) This function is intended to be used to parse user input.
Click to show internal directories.
Click to hide internal directories.