net

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostIP added in v0.0.20

func GetHostIP() (net.IP, error)

HostIP tries to find an IP that can be used by other machines to reach this machine.

func GetLocalAddrs

func GetLocalAddrs() ([]*net.IPNet, error)

func GetLocalFirstIP

func GetLocalFirstIP() (string, error)

func GetLocalFirstMac

func GetLocalFirstMac() (string, error)

func GetLocalIPs

func GetLocalIPs() ([]string, error)

func GetLocalMacs

func GetLocalMacs() ([]string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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