Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyValue = errors.New("ip address cannot be empty")
Functions ¶
This section is empty.
Types ¶
type IP ¶ added in v2.0.18
type IP struct {
// contains filtered or unexported fields
}
func FromString ¶
func (IP) MarshalJSON ¶ added in v2.0.18
MarshalJSON marshall implementation for IP
func (*IP) UnmarshalJSON ¶ added in v2.0.18
UnmarshalJSON unmarshall implementation for IP
type IPv4 ¶
type IPv4 string
func V4FromString ¶ added in v2.0.18
func (*IPv4) UnmarshalJSON ¶
UnmarshalJSON unmarshall implementation for IP
type IPv6 ¶ added in v2.0.18
type IPv6 string
func V6FromString ¶ added in v2.0.18
func (*IPv6) UnmarshalJSON ¶ added in v2.0.18
UnmarshalJSON unmarshall implementation for IP
Click to show internal directories.
Click to hide internal directories.