A basic overview of golang that helps you to get started with GO language
- install golang using brew ->
brew install golang
or from official page ->https://golang.org/doc/install?download=go1.14.6.darwin-amd64.pkg
- Set GOPATH and GOROOT environment in
.bashrc
or.zshrc
if required externally to setup workspace - Check go version by using
go version
go to any folder and run command go run <filename>.go
- hello_world
- variables, primitives, constants
- array, slices
- map, struct
- control_flow, looping
- pointer
- functions
- interfaces