utils

package
v1.1.14-test2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllInterfaceAddrs

func AllInterfaceAddrs() ([]net.Addr, error)

Return all IP addresses that are currently in use on the local host.

This function differs from net.InterfaceAddrs() in that peer addresses for point-to-point interfaces are returned by this function, in addition to local interface addresses.

func GetCidr added in v0.33.0

func GetCidr(ipOrCidr string) (*net.IPNet, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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