How to install and start simple project
$ brew install golang
$ vi ~/.bash_profile
...
export GOROOT=/usr/local/Cellar/go/1.13.7/libexec
export GOPATH={path_destination}
export PATH=$PATH:/usr/local/go/bin
...
$ mkdir golang
$ cd golang
main.go
package main
import "fmt"
func main() {
fmt.Printf("What's up ? , GO \n")
}
$ go run main.go
What's up ? , GO
$ go build main.go
$ ./main.go
What's up ? , GO
ref :