Tricky Go
A collection of runnable pieces of Go code which demonstrate tricky aspects of the language.
The approach is basically similar to the famous Go by Example, with the following differencies:
- Tricky Go is about tricky and less obvious aspects only.
- All examples are runnable.
- Setup requirements are minimal — all you need is Go.
Table of contents
Reflection
You can also browse full project's documentation on Godoc.
Local setup
- Clone.
- To run tests, do a:
./Test
. - To serve a local documentation server, do a:
./ServeDocs
.
Contributing
If you've discovered other tricky parts of Go you'd like to share, I invite you to collaborate:
- Fork, clone.
- Following existing code and tests form, add your case to the tree (e.g. code and tests).
- Run tests.
- Push, send me a pull request.
Cheers!
Feedback of any kind is highly appreciated.
— Alex Fortuna, © 2019