summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxegineering <me@xegineering.eu>2024-10-02 15:31:52 +0200
committerxegineering <me@xegineering.eu>2024-10-02 15:31:52 +0200
commit4b900301a0599097d0a756344893f7630bda6feb (patch)
treee1a9d793cc6e092a3fb184018b66227f6cce218c
parent3fc713ccfcc96738d981a97647a84a6cb6bbec04 (diff)
downloadsoundbox-go-4b900301a0599097d0a756344893f7630bda6feb.tar
soundbox-go-4b900301a0599097d0a756344893f7630bda6feb.tar.zst
soundbox-go-4b900301a0599097d0a756344893f7630bda6feb.zip
Change Go module name from `soundbox-go` to `soundbox`
Go modules should be named with a single word if possible (see the [standard libraray][1] as a reference example). Furthermore the module name will be present in the code very often and thus length is a critical point. The repository and project should still be named `soundbox-go` to distinguish it from the device repository [soundbox][2] and the application repository [soundbox-app][3]. [1]: https://pkg.go.dev/std [2]: https://cgit.xengineering.eu/soundbox [3]: https://cgit.xengineering.eu/soundbox-app
-rw-r--r--README.md3
-rw-r--r--go.mod2
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1952d11..e5026e6 100644
--- a/README.md
+++ b/README.md
@@ -2,4 +2,7 @@
soundbox-go is a Go library to interface with [soundbox][1] devices.
+While the repository and project name is `soundbox-go` the Go module name is
+only `soundbox` to make the resulting code more readable.
+
[1]: https://xengineering.eu/git/soundbox
diff --git a/go.mod b/go.mod
index 934ac7c..a58af87 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
-module xengineering.eu/soundbox-go
+module xengineering.eu/soundbox
go 1.23.1