diff options
author | xegineering <me@xegineering.eu> | 2024-12-08 18:31:56 +0100 |
---|---|---|
committer | xegineering <me@xegineering.eu> | 2024-12-08 18:34:11 +0100 |
commit | f30e3668a6a65a8e5e43b3cc0b2030788b43857d (patch) | |
tree | 23e95ea7c9194884e2c88ff8ec9316c74f29ac3f /soundbox | |
parent | b76ac2daffb98fe7aea14385638150381cfb031b (diff) | |
download | soundbox-go-f30e3668a6a65a8e5e43b3cc0b2030788b43857d.tar soundbox-go-f30e3668a6a65a8e5e43b3cc0b2030788b43857d.tar.zst soundbox-go-f30e3668a6a65a8e5e43b3cc0b2030788b43857d.zip |
Add examples to overview on generated API doc
This makes it easier for readers to find them.
Diffstat (limited to 'soundbox')
-rw-r--r-- | soundbox/example_pipewire_test.go (renamed from soundbox/pipewire_test.go) | 2 | ||||
-rw-r--r-- | soundbox/example_url_test.go (renamed from soundbox/url_test.go) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/soundbox/pipewire_test.go b/soundbox/example_pipewire_test.go index b857414..53864f3 100644 --- a/soundbox/pipewire_test.go +++ b/soundbox/example_pipewire_test.go @@ -9,7 +9,7 @@ import ( "xengineering.eu/soundbox-go/soundbox" ) -func ExampleStreamPipewireContext() { +func Example_pipewire() { ctx, cancel := context.WithCancel(context.Background()) // all soundboxes are referenced by their MAC address diff --git a/soundbox/url_test.go b/soundbox/example_url_test.go index 41907ad..5c6a7c2 100644 --- a/soundbox/url_test.go +++ b/soundbox/example_url_test.go @@ -9,7 +9,7 @@ import ( "xengineering.eu/soundbox-go/soundbox" ) -func ExampleStreamURLContext() { +func Example_url() { ctx, cancel := context.WithCancel(context.Background()) // all soundboxes are referenced by their MAC address |