Documentation
¶
Index ¶
- type IP
- func (a IP) Add(b IP) IP
- func (a IP) And(b IP) IP
- func (ip IP) AsSlice() []byte
- func (ip IP) AsSlice4() []byte
- func (ip IP) AsSlice6() []byte
- func (ip IP) AsUint32() uint32
- func (ip IP) ByteFromEnd(i int) byte
- func (ip IP) Is4() bool
- func (ip IP) Is6() bool
- func (ip IP) IsLinkLocal() bool
- func (ip IP) IsZero() bool
- func (ip IP) IsZeroAddr() bool
- func (ip IP) Len() int
- func (a IP) Not() IP
- func (a IP) Or(b IP) IP
- func (ip IP) String() string
- func (ip IP) Ver() int
- func (a IP) XOr(b IP) IP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IP ¶
func IPFromUint32 ¶
func MustParseIP ¶
func (IP) ByteFromEnd ¶
func (IP) IsLinkLocal ¶
func (IP) IsZero ¶
Tests if the IP is equal to the zero-initialized value. This is distinct from the zero IP address (eg. 0.0.0.0 or ::).
func (IP) IsZeroAddr ¶
Click to show internal directories.
Click to hide internal directories.