Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-12-01 | Introduce example_ prefix convention | xengineering | |
This allows to distinguish unit test files of the format `<name>_test.go` from full file examples like `example_<name>_test.go`. | |||
2024-12-01 | Fix template example name | xengineering | |
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 | |||
2024-11-08 | Add example for usage in Go templates | xengineering | |