Versions in this module Expand all Collapse all v1 v1.2.1 Mar 6, 2021 v1.2.0 Sep 20, 2020 v1.1.3 Sep 12, 2020 v1.1.2 Jul 19, 2020 Changes in this version + var NativeEndian binary.ByteOrder + func NativelyLittle() bool + type IP4 uint32 + func FromBytes(ip []byte) IP4 + func FromIP(ip net.IP) IP4 + func MustParseIP4(s string) IP4 + func ParseIP4(s string) (IP4, error) + func (ip *IP4) UnmarshalJSON(j []byte) error + func (ip IP4) MarshalJSON() ([]byte, error) + func (ip IP4) NetworkOrder() uint32 + func (ip IP4) Octets() (a, b, c, d byte) + func (ip IP4) String() string + func (ip IP4) StringSep(sep string) string + func (ip IP4) ToIP() net.IP + type IP4Net struct + IP IP4 + PrefixLen uint + func FromIPNet(n *net.IPNet) IP4Net + func (n *IP4Net) UnmarshalJSON(j []byte) error + func (n IP4Net) Contains(ip IP4) bool + func (n IP4Net) Empty() bool + func (n IP4Net) Equal(other IP4Net) bool + func (n IP4Net) MarshalJSON() ([]byte, error) + func (n IP4Net) Mask() uint32 + func (n IP4Net) Network() IP4Net + func (n IP4Net) Next() IP4Net + func (n IP4Net) Overlaps(other IP4Net) bool + func (n IP4Net) String() string + func (n IP4Net) StringSep(octetSep, prefixSep string) string + func (n IP4Net) ToIPNet() *net.IPNet