ifconfig

package
v0.0.0-...-a2a1003 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Getsysrange

func Getsysrange(apipa bool) (nets []string)

Getsysrange gets all system ipv4 ranges

func RemoveDuplicates

func RemoveDuplicates(elements []string) []string

RemoveDuplicates remove duplicates in slice of string

Types

type NetLinkData

type NetLinkData struct {
	Name   string      // interface name
	IPNets []net.IPNet // ip v4 addresses
}

NetLinkData contain network interface names + ip address

func Adapters

func Adapters() ([]NetLinkData, error)

Adapters Get List of network interfaces with ipv4 address

Jump to

Keyboard shortcuts

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