First
1 | export GO111MODULE=on |
otherwise the dumbass golang will try to visit https://sum.golang.org/lookup/xxxxxx
Then directly go to work folder where gonna write go code
1 | go mod init example.com/thebinaryname |
the developers must got these ideas from nodejs development….
then create main.go ,the old days back
go build or go run main.go