<feed xmlns='http://www.w3.org/2005/Atom'>
<title>optional-go, branch main</title>
<subtitle>Optional implementation for the Go language</subtitle>
<id>https://cgit.xengineering.eu/optional-go/atom</id>
<link rel='self' href='https://cgit.xengineering.eu/optional-go/atom'/>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/'/>
<updated>2024-12-01T19:41:08Z</updated>
<entry>
<title>Add full-file example for JSON parsing</title>
<updated>2024-12-01T19:41:08Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-12-01T19:41:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=9552e525fd30cd8a7330430d913c4721f8059e38'/>
<id>urn:sha1:9552e525fd30cd8a7330430d913c4721f8059e38</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Introduce example_ prefix convention</title>
<updated>2024-12-01T19:26:12Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-12-01T19:26:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=4c500acc06bd01b52ceacd3dc458f4eb7070e381'/>
<id>urn:sha1:4c500acc06bd01b52ceacd3dc458f4eb7070e381</id>
<content type='text'>
This allows to distinguish unit test files of the format
`&lt;name&gt;_test.go` from full file examples like `example_&lt;name&gt;_test.go`.
</content>
</entry>
<entry>
<title>Fix template example name</title>
<updated>2024-12-01T19:11:30Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-12-01T19:06:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=9ccb926124e84f46453b863f9cf3b1bdd93836ac'/>
<id>urn:sha1:9ccb926124e84f46453b863f9cf3b1bdd93836ac</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Fix go.mod file</title>
<updated>2024-11-27T19:33:20Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-11-27T19:33:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=49ce555973f680db0b8b58a8fdaa060a82016cc2'/>
<id>urn:sha1:49ce555973f680db0b8b58a8fdaa060a82016cc2</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Add json (un)marshal support</title>
<updated>2024-11-08T17:21:09Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-11-08T17:21:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=d8dbdaedcfb9099ae091a805972d380a7cddc4a4'/>
<id>urn:sha1:d8dbdaedcfb9099ae091a805972d380a7cddc4a4</id>
<content type='text'>
This allows to use optionals for fields of structs which are marshalled
or unmarshalled to or from JavaScript object notation (JSON).
</content>
</entry>
<entry>
<title>Test that empty optional does not exist</title>
<updated>2024-11-08T17:02:09Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-11-08T17:02:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=08ea24952ece9c82a932910126975d26e486758c'/>
<id>urn:sha1:08ea24952ece9c82a932910126975d26e486758c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add example for usage in Go templates</title>
<updated>2024-11-08T16:57:32Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-11-08T16:00:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=45af2e59bbbf9e08014bda2d894b402f574c9516'/>
<id>urn:sha1:45af2e59bbbf9e08014bda2d894b402f574c9516</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add main.go with generic Optional definition</title>
<updated>2024-11-08T15:58:52Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-11-08T15:58:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=e3a3949959f3223ec69f2c60d4e620f8653dc2ff'/>
<id>urn:sha1:e3a3949959f3223ec69f2c60d4e620f8653dc2ff</id>
<content type='text'>
This is the core of the optional package.
</content>
</entry>
<entry>
<title>Add go.mod file</title>
<updated>2024-11-08T15:30:03Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-11-08T15:30:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=06300056ee184d7daecf2c3764c86978cec667ec'/>
<id>urn:sha1:06300056ee184d7daecf2c3764c86978cec667ec</id>
<content type='text'>
This declares the xengineering.eu/optional-go module.
</content>
</entry>
<entry>
<title>Add Mozilla Public License Version 2.0</title>
<updated>2024-11-08T15:27:51Z</updated>
<author>
<name>xengineering</name>
<email>me@xengineering.eu</email>
</author>
<published>2024-11-08T15:27:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit.xengineering.eu/optional-go/commit/?id=608b6a1a4309cfd112e7e321d94fb846101081b5'/>
<id>urn:sha1:608b6a1a4309cfd112e7e321d94fb846101081b5</id>
<content type='text'>
</content>
</entry>
</feed>
