Documentation
¶
Index ¶
- Constants
- Variables
- func CalcCidrHostCount(maskint int) uint
- func IPv4CalcNetwork(ip string, netmaskNumeric int64) string
- func IpIntToStr(ipInt uint64) (ip string)
- func IpToInt(ip string) (ipInt uint64)
- func IsIPv4(ip string) bool
- func IsIPv4Private(ip string) bool
- func MacSplit(mac string, deli string) string
- func NetmaskDigit2String(digit int) string
- func NetmaskString2Digit(netmask string) int
- func ReverseIPv4(ip string) string
- func ReverseIPv4Int(ipInt int64) string
Constants ¶
View Source
const ( DelimiterDash = "-" DelimiterColon = ":" DelimiterSubnet = "/" )
Variables ¶
View Source
var (
IPv4Private = []string{
"10.0.0.0/8",
"172.16.0.0/12",
"192.168.0.0/16",
}
)
Functions ¶
func CalcCidrHostCount ¶
func IPv4CalcNetwork ¶
func IpIntToStr ¶
func IsIPv4Private ¶
func NetmaskDigit2String ¶
func NetmaskString2Digit ¶
func ReverseIPv4 ¶
func ReverseIPv4Int ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.