package soundbox_test import ( "fmt" "log" "xengineering.eu/soundbox" ) // ExampleClient demonstrates how to instantiate a Client struct. The used MAC // address is from an address range suitable for documentation according to // https://www.rfc-editor.org/rfc/rfc9542.html#name-48-bit-mac-documentation-va. func ExampleClient() { s, err := soundbox.NewClient("00:00:5E:00:53:01") if err != nil { log.Fatal(err) } fmt.Printf("Client with MAC address %v", s.HardwareAddr) // Output: Client with MAC address 00:00:5e:00:53:01 }