netutils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIPAddressOverflow = errors.New("ip address overflow")

Functions

func FormatAddresses

func FormatAddresses(s []net.IPNet, sep string) string

func FormatIPs

func FormatIPs(s []net.IP, sep string) string

func LastIP

func LastIP(addr net.IPNet) net.IP

func NextAddress

func NextAddress(addr net.IPNet) (next net.IPNet, err error)

func ParseAddress

func ParseAddress(in string) (out net.IPNet, err error)

func ParseAddresses

func ParseAddresses(in []string) (out []net.IPNet, err error)

func ParseIPs

func ParseIPs(in []string) (out []net.IP, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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