Documentation ¶ Index ¶ func ToNetIpAddr(ip net.IP) (netip.Addr, error) func ToNetIpPrefix(ipNet net.IPNet) (netip.Prefix, error) type VpnIp func Ip2VpnIp(ip []byte) VpnIp func (ip VpnIp) MarshalJSON() ([]byte, error) func (ip VpnIp) String() string func (ip VpnIp) ToIP() net.IP func (ip VpnIp) ToNetIpAddr() netip.Addr Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ToNetIpAddr ¶ added in v1.6.0 func ToNetIpAddr(ip net.IP) (netip.Addr, error) func ToNetIpPrefix ¶ added in v1.6.0 func ToNetIpPrefix(ipNet net.IPNet) (netip.Prefix, error) Types ¶ type VpnIp ¶ type VpnIp uint32 func Ip2VpnIp ¶ func Ip2VpnIp(ip []byte) VpnIp func (VpnIp) MarshalJSON ¶ func (ip VpnIp) MarshalJSON() ([]byte, error) func (VpnIp) String ¶ func (ip VpnIp) String() string func (VpnIp) ToIP ¶ func (ip VpnIp) ToIP() net.IP func (VpnIp) ToNetIpAddr ¶ added in v1.6.0 func (ip VpnIp) ToNetIpAddr() netip.Addr Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.