util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(slice []string, s string) bool

func GetCIDRAddressCount added in v0.3.0

func GetCIDRAddressCount(cidr string) int

func GetDefaultInterfaceName added in v0.0.2

func GetDefaultInterfaceName() string

func GetIPRangeAddressCount added in v0.3.0

func GetIPRangeAddressCount(first, last string) int

func GetOutboundIP

func GetOutboundIP() string

Get preferred outbound ip of this machine

func GetValidAddressCount added in v0.3.0

func GetValidAddressCount(addr string) int

func Intersect added in v0.3.0

func Intersect(n1, n2 *net.IPNet) bool

func ParseAddress added in v0.3.0

func ParseAddress(addr string) ([]*net.IPNet, error)

func RemoveString

func RemoveString(slice []string, s string) (result []string)

func ToCommonString

func ToCommonString(ip string, prefix uint32) string

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