Documented code to learn Go language.
Instead of writing blog posts about Go, I will create different folders containing similar concepts and documenting them via comments.
If you'd like to run the snippets on your machine, you'll have to download and install the Go binaries from their website.
Optionally, you can install a code editor. I personally advice using VSCode or Atom, as they're free and have both officially supported plugins for the Go language.
Every snippet works individually, unless stated otherwise. You can run one by using the go run snippet-name.go
command.
- Hello World
- Variables
- Pointers
- IO
- Arrays and Slices
- Structures
- Maps
- Conditionals
- Loops
You're free to add your snippets of documented code, just submit a pull request to this repository with your changes.
Only remember to document your code and add your snippets to the list above.