net

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: MIT, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrToIP added in v1.7.14

func AddrToIP(addr net.Addr) net.IP

AddrToIP updates or inserts a value.

func CommonIPV4

func CommonIPV4() (string, error)

CommonIPV4 performs the operation.

func CommonIPv6

func CommonIPv6() (string, error)

CommonIPv6 performs the operation.

func ExternalIP

func ExternalIP() (net.IP, error)

ExternalIP performs the operation.

func ExternalIPStr added in v1.7.14

func ExternalIPStr() string

ExternalIPStr returns the result.

func IPStrToUint32

func IPStrToUint32(ipStr string) uint32

IPStrToUint32 returns the result.

func IPv4ToUint32

func IPv4ToUint32(ip net.IP) uint32

IPv4ToUint32 returns the result.

func IPv4s added in v1.7.14

func IPv4s() ([]net.IP, error)

IPv4s performs the operation.

func IPv6s

func IPv6s() ([]net.IP, error)

IPv6s performs the operation.

func LocalIPv4s added in v1.7.14

func LocalIPv4s() ([]net.IP, error)

LocalIPv4s performs the operation.

func LocalIPv6s added in v1.7.14

func LocalIPv6s() ([]net.IP, error)

LocalIPv6s performs the operation.

func PrivateIPv4 added in v1.7.14

func PrivateIPv4() (net.IP, error)

PrivateIPv4 performs the operation.

func Uint32ToIPv4

func Uint32ToIPv4(ipInt uint32) net.IP

Uint32ToIPv4 returns the result.

Types

type StrAddr

type StrAddr string

func (StrAddr) Network

func (a StrAddr) Network() string

Network returns the result.

func (StrAddr) String

func (a StrAddr) String() string

String returns the string representation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL