Standard library / net
net.HardwareAddr
Hardware address represented by a byte slice. Expected stdout: '6\n'.
Formal Syntax & Structure
go syntaxgo
type HardwareAddr []byteWorking Example
Example Snippetgo
package main
import ( "fmt" "net")
func main() { v := net.HardwareAddr{2, 0, 0, 0, 0, 1}; fmt.Println(len(v)) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}