sys

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNetNoIface = errors.New("unable find a suitable interface")
)

Errors.

Functions

func FindIface

func FindIface() (string, error)

FindIface returns name of the first active interface with non-nil MAC address.

func IfaceMAC

func IfaceMAC(name string) (net.HardwareAddr, error)

IfaceMAC returns the MAC address for the Interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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