summaryrefslogtreecommitdiff
path: root/examples_test.go
diff options
context:
space:
mode:
authorxegineering <me@xegineering.eu>2024-10-03 18:56:14 +0200
committerxegineering <me@xegineering.eu>2024-10-03 20:00:04 +0200
commit9b995e02371e45e8cb5806ee7c7eb8139bf24fd8 (patch)
tree1f135548b9b6ed6cca9b1fc4b717e1523ca33f63 /examples_test.go
parentd246a58cb4473c7a311d99232a18057544219a9b (diff)
downloadsoundbox-go-9b995e02371e45e8cb5806ee7c7eb8139bf24fd8.tar
soundbox-go-9b995e02371e45e8cb5806ee7c7eb8139bf24fd8.tar.zst
soundbox-go-9b995e02371e45e8cb5806ee7c7eb8139bf24fd8.zip
Remove soundbox.Client
This data structure only contained a net.HardwareAddr and did not provide much more useful functionality. Thus the net.HardwareAddr type should be used directly.
Diffstat (limited to 'examples_test.go')
-rw-r--r--examples_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/examples_test.go b/examples_test.go
deleted file mode 100644
index 8d233db..0000000
--- a/examples_test.go
+++ /dev/null
@@ -1,21 +0,0 @@
-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
-}