Go is concise, clean and effiecient programming language by Google.
The entrypoint of a Go program is main
package.
GOPATH
is the environment variable that defines the root of the workspace.
Windows | Unix |
---|---|
%USERPROFILE%/go |
$HOME/go |
- Almost everything in
Go
is a Type. - They are almost case insensitive.
- The types of variables should be known in advance.
- The starting -
Hello World
- The
Type
and variables - Inputs, conversions and parsing
- Time and Dates
- Building
Go
project into different os binaries - Memory management
- Pointers in
Go
- Arrays
- Slices
- Key value pairs -
Maps
- Structs
- Conditionals
- Switch case
- Loops
- Functions
- Attaching methods to structs
defer
keyword- File system
- Http requests
- URL
- More about
HTTP
requests JSON
- Javascript Object Notation- Consuming
JSON
- (Important) - Modules in Golang
- A Simple In Memory Reset API
- Go Routines
- Wait Groups
Mutex
andRWMutex
- Communication between go routines