Go / Golang
Packages vs Modules
Preliminary Forget about the packages and modules that you know from Python, it is no related, y...
Import packages / modules
I have a helper file that I would like to use within the same project. If say your directory lay...
Structs exported fields
Exported structs and fields Like functions if you would like to export a struct from a package f...
Go with Examples
Introduction: Hello World, values, and variables
Go code layouts A Go project is also called a module. A module is just a collection of packages....
If/else
If/else If else is very similar to C except you just take out the parenthesis. func main() { ...
Switch Statement
Switch Statement Switch in Go is pretty nice, it function similar to the switch statement in C b...
Arry and Slices
Array An array can be declared with the following syntax: var <arr_name> [length]type For exam...
Loops and range
For loops The only looping construct in Go is the for loop. There is no while loop, but it is ac...
Functions
Functions To write a function you would need to use the func keyword, provide the name of the fu...
Embed Modules
Embed Module This module is a super duper cool module in the sense that you are able to pack sta...