summaryrefslogtreecommitdiff
path: root/optional/example_template_test.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-12-01 20:06:53 +0100
committerxengineering <me@xengineering.eu>2024-12-01 20:11:30 +0100
commit9ccb926124e84f46453b863f9cf3b1bdd93836ac (patch)
treede8ead80c2b540022f1494c4b648d848eaed445a /optional/example_template_test.go
parent49ce555973f680db0b8b58a8fdaa060a82016cc2 (diff)
downloadoptional-go-9ccb926124e84f46453b863f9cf3b1bdd93836ac.tar
optional-go-9ccb926124e84f46453b863f9cf3b1bdd93836ac.tar.zst
optional-go-9ccb926124e84f46453b863f9cf3b1bdd93836ac.zip
Fix template example name
The naming conventions for test functions are a bit special and different to the normal naming conventions in Go. They are documented here [1]. This had the effect that godoc and pkg.go.dev did not display this example. Testing with `godoc` locally helped to debug this. Calling `go install golang.org/x/tools/cmd/godoc@latest` helped with the installation. [1]: https://go.dev/blog/examples
Diffstat (limited to 'optional/example_template_test.go')
0 files changed, 0 insertions, 0 deletions