Articles in this series
Go is an open-source, statically typed, compiled programing language built by Google. It combines the simplest of both statically typed and...
Source code organization Since GO1.11 we've had two ways of organizing go code: one is, using GOPATH and the second one is using go mod. GOPATH the...
Variable A variable is a symbolic name given to the storage location which contains some value that can be changed at any time during the execution of...
Go has only one looping construct, the for loop. Basic for loop The basic for loop has three components separated by semicolons: init statement: i :=...
Conditional Statements are part of every programming language. They help us to decide which instruction is supposed to run when a certain condition is...
A switch statement is another way to write a sequence of if-else statements. Go’s switch is like the one in C and C++ except that it only runs the...