go help - 查看帮助文档
例:go help build
~ $ go help build
usage: go build [-o output] [build flags] [packages]
Build compiles the packages named by the import paths,
along with their dependencies, but it does not install the results.
If the arguments to build are a list of .go files from a single directory,
build treats them as a list of source files specifying a single package.
go build - 对源代码和依赖的文件进行打包编译,生成可执行文件
例:go build -o my_first_go_bin_file/demo.go
go install - 编译并安装包或依赖,安装到$GOPATH/bin下
例:go install entrance_class/demo.go
go get - 把依赖苦添加到当前module中,若本机不存在依赖库,则先下载
go mod - 相关命令
go run - 编译并执行.go代码
go test - 执行测试代码
go tool - 执行go自带的工具
go vet - 检查代码中的静态错误