net

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(n *net.IPNet, ip net.IP) bool

func IPString

func IPString(ip net.IP) string

func IsLoopback

func IsLoopback(ip net.IP) bool

func IsMulticast

func IsMulticast(ip net.IP) bool

func IsNil

func IsNil(ip net.IP) bool

func IsPrivate

func IsPrivate(ip net.IP) bool

func JoinHostPort

func JoinHostPort(host string, port string) string

func LookupHost

func LookupHost(host string) ([]string, error)

func ParseCIDR

func ParseCIDR(s string) (*net.IPNet, error)

func ParseIP

func ParseIP(s string) net.IP

func SplitHostPort

func SplitHostPort(hostport string) (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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