learn-go
Documented code to learn Go language.
How does it work?
Instead of writing blog posts about Go, I will create different folders containing similar concepts and documenting them via comments.
Requirements
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.
Running the Code Snippets
Every snippet works individually, unless stated otherwise. You can run one by using the go run snippet-name.go
command.
Currently Available Snippets
- Hello World
- Variables
- Pointers
- IO
- Arrays and Slices
- Structures
- Maps
- Conditionals
- Loops
Contributions
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.