util

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructFieldIndexMap added in v0.4.0

func ConstructFieldIndexMap(entry interface{}) map[string]int

func GetAllIFaceName

func GetAllIFaceName() ([]string, error)

func GetAllLocalIp

func GetAllLocalIp() ([]string, error)

func GetFirstLocalIp

func GetFirstLocalIp() (string, error)

func GetIpV4ByIFace

func GetIpV4ByIFace(name string) (string, error)

func IpInt2Str

func IpInt2Str(ip uint32) string

func IpStr2Int

func IpStr2Int(ip string) uint32

func IsLocalIpV4

func IsLocalIpV4(ip net.IP) bool

func JoinKV added in v0.2.0

func JoinKV(key string, value interface{}) string

func ParsePackageName

func ParsePackageName(f string) (string, string)

func UMask

func UMask(mask int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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