net

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSourceIP

func GetSourceIP(target string) (string, error)

GetSourceIP return srouce ip to target ip.

func InterfaceAddrs

func InterfaceAddrs() ([]string, error)

InterfaceAddrs returns a list of the system's unicast interface addresses in string.

func InterfaceHasAddr

func InterfaceHasAddr(addr string) (bool, error)

InterfaceHasAddr use to check whether host has the specified addr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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