Documentation ¶
Index ¶
- type IPv6
- func (ip *IPv6) Addr() netip.Addr
- func (ip *IPv6) Binary() string
- func (ip *IPv6) ExplainBin() string
- func (ip *IPv6) GlobalUnicast() bool
- func (ip *IPv6) Hex() string
- func (ip *IPv6) IID() string
- func (ip *IPv6) IPv4Mapped() bool
- func (ip *IPv6) InterfaceLocalMulticast() bool
- func (ip *IPv6) LinkLocalMulticast() bool
- func (ip *IPv6) LinkLocalUnicast() bool
- func (ip *IPv6) Loopback() bool
- func (ip *IPv6) Multicast() bool
- func (ip *IPv6) Network() string
- func (ip *IPv6) Prefix() netip.Prefix
- func (ip *IPv6) Private() bool
- func (ip *IPv6) SetPrefix(prefix string)
- func (ip *IPv6) SetPrefixLength(numBits int)
- func (ip *IPv6) String() string
- func (ip *IPv6) Subnet() string
- func (ip *IPv6) Type() string
- func (ip *IPv6) Unicast() bool
- func (ip *IPv6) Unspecified() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPv6 ¶
type IPv6 struct {
// contains filtered or unexported fields
}
IPv6 is an IPv6 address
func (*IPv6) ExplainBin ¶
ExplainBin returns an explanation of the IP and its structure as string
func (*IPv6) GlobalUnicast ¶
GlobalUnicast returns wether ip is a global unicast address
func (*IPv6) IPv4Mapped ¶
IPv4Mapped returns wether ip is an IPv4-mapped IPv6 address
func (*IPv6) InterfaceLocalMulticast ¶
InterfaceLocalMulticast returns wether ip is an interface local multicast address
func (*IPv6) LinkLocalMulticast ¶
LinkLocalMulticast returns wether ip is a local multicast address
func (*IPv6) LinkLocalUnicast ¶
LinkLocalUnicast returns wether ip is a local unicast address
func (*IPv6) SetPrefixLength ¶
SetPrefixLength sets prefix length of ip in number of bits
func (*IPv6) Unspecified ¶
Unspecified returns wether ip is the unspecified address
Click to show internal directories.
Click to hide internal directories.