network

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskNetworkInfo

func AskNetworkInfo(interfaceName string) (net.HardwareAddr, net.IP, net.IP, error)

retrieves information for the specified network device.

Parameters:

device (string): The name of the network device for which to fetch addresses.

Returns:

net.HardwareAddr: MAC address of the network device.
net.IP: IPv4 address of the network device.
net.IP: Broadcast address of the network device.
error: Any error encountered during the address retrieval process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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