Documentation
¶
Index ¶
- type IPv4
- func (ip *IPv4) Addr() netip.Addr
- func (ip *IPv4) Binary() string
- func (ip *IPv4) Broadcast() bool
- func (ip *IPv4) Decimal() string
- func (ip *IPv4) ExplainBin() string
- func (ip *IPv4) ExplainDecimal() string
- func (ip *IPv4) Host() string
- func (ip *IPv4) Loopback() bool
- func (ip *IPv4) Multicast() bool
- func (ip *IPv4) Network() string
- func (ip *IPv4) Prefix() netip.Prefix
- func (ip *IPv4) Private() bool
- func (ip *IPv4) SetPrefix(prefix string)
- func (ip *IPv4) SetPrefixLength(numBits int)
- func (ip *IPv4) String() string
- func (ip *IPv4) Type() string
- func (ip *IPv4) Unicast() bool
- func (ip *IPv4) Unspecified() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPv4 ¶
type IPv4 struct {
// contains filtered or unexported fields
}
IPv4 is an IPv4 address
func (*IPv4) ExplainBin ¶
ExplainBin returns an explanation of the IP and its structure as string
func (*IPv4) ExplainDecimal ¶
ExplainDecimal returns an explanation of the IP and its structure as string
func (*IPv4) SetPrefixLength ¶
SetPrefixLength sets prefix length of ip in number of bits
func (*IPv4) Unspecified ¶
Unspecified returns wether ip is the unspecified address
Click to show internal directories.
Click to hide internal directories.