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
Gois a Type. - They are almost case insensitive.
- The types of variables should be known in advance.
- The starting -
Hello World - The
Typeand variables - Inputs, conversions and parsing
- Time and Dates
- Building
Goproject 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
deferkeyword- File system
- Http requests
- URL
- More about
HTTPrequests JSON- Javascript Object Notation- Consuming
JSON - (Important) - Modules in Golang
- A Simple In Memory Reset API
- Go Routines
- Wait Groups
MutexandRWMutex- Communication between go routines