Documentation ¶
Index ¶
- Variables
- func CalcIPv4Network(ip string, masklen int64) string
- func GetLocalIP() (ips []string)
- func GetLocalMacAddrs() (macAddrs []string)
- func GetMaskLen(netmask string) int
- func IPv4ToInt(ip string) (intip uint64)
- func IntIPv4ToStr(intip uint64) (ip string)
- func IsIPv4(ip string) bool
- func IsPrivate(ip string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NetPrivate = []string{
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16",
}
)
Functions ¶
func CalcIPv4Network ¶
func GetLocalIP ¶
func GetLocalIP() (ips []string)
func GetLocalMacAddrs ¶
func GetLocalMacAddrs() (macAddrs []string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.