Documentation ¶
Index ¶
Examples ¶
Constants ¶
View Source
const ( IgnoreCase = Case(iota) LowerCase UpperCase )
Constants that indicate the case of a formatted address
View Source
const NoGroups = 0
NoGroups indicates that a formatted address doesn't have grouped hex digits
View Source
const NoSeparator = rune(0)
NoSeparator indicates that a formatted address doesn't have a separator character
View Source
const SizeOfEUI48 = 6
SizeOfEUI48 is the number of bytes that an EUI-48 address holds
View Source
const SizeOfEUI64 = 8
SizeOfEUI64 is the number of bytes that an EUI-64 address holds
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EUI48 ¶
type EUI48 [SizeOfEUI48]byte
EUI48 represents an EUI-48 or MAC-48 address
Example ¶
var addr = EUI48{0xC0, 0xDE, 0xC0, 0xDE, 0xC0, 0xDE} fmt.Println(addr)
Output: [192 222 192 222 192 222]
type EUI64 ¶
type EUI64 [SizeOfEUI64]byte
EUI64 represents an EUI-64 address
Example ¶
var addr = EUI64{0xC0, 0xDE, 0xC0, 0xDE, 0xC0, 0xDE, 0xC0, 0xDE} fmt.Println(addr)
Output: [192 222 192 222 192 222 192 222]
Click to show internal directories.
Click to hide internal directories.