netutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstExternalIP

func FirstExternalIP() (string, error)

FirstExternalIP returns the first non-loopback IPv4 address found.

Types

type IPInfo

type IPInfo struct {
	Interface string
	IP        string
	MAC       string
}

IPInfo contains network interface information.

func GetExternalIPs

func GetExternalIPs() ([]IPInfo, error)

GetExternalIPs returns information about non-loopback, up interfaces.

Jump to

Keyboard shortcuts

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