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 ¶
type IP struct {
// contains filtered or unexported fields
}
func FromString ¶
func (IP) MarshalJSON ¶
MarshalJSON marshall implementation for IP
func (*IP) UnmarshalJSON ¶
UnmarshalJSON unmarshall implementation for IP
type IPv4 ¶
type IPv4 string
func V4FromString ¶
func (*IPv4) UnmarshalJSON ¶
UnmarshalJSON unmarshall implementation for IP
type IPv6 ¶
type IPv6 string
func V6FromString ¶
func (*IPv6) UnmarshalJSON ¶
UnmarshalJSON unmarshall implementation for IP
Click to show internal directories.
Click to hide internal directories.