Age | Commit message (Collapse) | Author |
|
|
|
This allows to distinguish unit test files of the format
`<name>_test.go` from full file examples like `example_<name>_test.go`.
|
|
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
|
|
The go tool under Debian reported that the version of the tool should be
specified only with major and minor version number but not patch
version.
|
|
This allows to use optionals for fields of structs which are marshalled
or unmarshalled to or from JavaScript object notation (JSON).
|
|
|
|
|
|
This is the core of the optional package.
|
|
This declares the xengineering.eu/optional-go module.
|
|
|