Golang(Go) Commands

Golang(Go) Commands

  1. ? ? go clean ? ?- To delete all the created executables in the current directory
  2. ? ? go doc ? ? ?- For displaying documentation about the libraries
  3. ? ? go env ? ? ?- print Go environment information
  4. ? ? go fmt ? ? ?- reformats source files using Go standard formatting
  5. ? ? go get ? ? ?- For retrieving and installing remote packages
  6. ? ? go install ?- To install the executable
  7. ? ? go list ? ? - list packages
  8. ? ? go run ? ? ?- compiles and runs a program, without saving an executable file
  9. ? ? go test ? ? - For unit testing and micro-benchmarks
  10. ? ? go version ?- Displays the current Go version
  11. ? ? go vet ? ? ?- Static Analyzer looking for potential errors in code
  12. ? ? go generate - Standard way to invoke code generators
  13. ? ? go rename ? - For renaming variables, functions, and so on in a type-safe way
  14. ? ? go fix ? ? ?- upgrade code from an old version before go1 to a new version after go1
  15. ? ? go build ? ?- compiles source code files into binary files

要查看或添加评论,请登录

社区洞察

其他会员也浏览了