util

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(s string) int

func ByteView

func ByteView(size int64) string

func ConnectTest

func ConnectTest(bind string, public string, ctrl int) error

func HostnameGet

func HostnameGet() string

func IsUsedTcpPort

func IsUsedTcpPort(port int) error

func IsUsedUdpPort

func IsUsedUdpPort(port int) error

func ListAtoi

func ListAtoi(ss []string) []int

func StringCat

func StringCat(v, pre, suf string) string

func UnusedPort

func UnusedPort(network string, begin, end int) int

Types

type InterfaceInfo

type InterfaceInfo struct {
	Ifname string
	IP     net.IP
	IPNet  net.IPNet
	Mac    string
	Flag   net.Flags
}

func InterfaceGet

func InterfaceGet() ([]InterfaceInfo, error)

func InterfaceGetByIP

func InterfaceGetByIP(ip string) (*InterfaceInfo, error)

Jump to

Keyboard shortcuts

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