summaryrefslogtreecommitdiff
path: root/optional
AgeCommit message (Collapse)Author
2024-12-01Fix template example namexengineering
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-08Add json (un)marshal supportv1.0.0xengineering
This allows to use optionals for fields of structs which are marshalled or unmarshalled to or from JavaScript object notation (JSON).
2024-11-08Test that empty optional does not existxengineering
2024-11-08Add example for usage in Go templatesxengineering
2024-11-08Add main.go with generic Optional definitionxengineering
This is the core of the optional package.