install go and Hello World Program

https://golangbyexample.com/workspace-hello-world-golang/
it is now time to set up the workspace for go and run our first go hello world program

GO Workspace

go env variables
$go env

GOROOT

It is the location of your GO SDK.

go env|grep GOROOT
GOROOT="/usr/local/go"

GOPATH

Before GO version 1.13

With Go version 1.13 or later

GOBIN

posted @ 2022-03-06 10:37  叶常落  阅读(15)  评论(0编辑  收藏  举报