Age | Commit message (Collapse) | Author |
|
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
|
|
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.
|