官术网_书友最值得收藏!

  • Security with Go
  • John Daniel Leon
  • 182字
  • 2021-06-30 19:06:39

The Go toolchain

The go executable is the main application of the Go toolchain. You can pass a command to go, and it will take the appropriate action. The toolchain has tools to run, compile, format source code, download dependencies, and more. Let's look at the full list, which is obtained as an output from the go help command or just go by itself:

  • build: This compiles packages and dependencies
  • clean: This removes object files
  • doc: This shows documentation for a package or symbol
  • env: This prints Go environment information
  • generate: This is the code generator
  • fix: This upgrades Go code when a new version is released
  • fmt: This runs gofmt on package sources
  • get: This downloads and installs packages and dependencies
  • help: This provides more help on a specific topic
  • install: This compiles and installs packages and dependencies
  • list: This lists packages
  • run: This compiles and runs Go programs
  • test: This runs unit tests and benchmarks
  • vet: This examines source code for bugs
  • version: This shows the Go version

More information about these commands is available at https://golang.org/cmd/.

主站蜘蛛池模板: 专栏| 马山县| 芮城县| 岳阳市| 弥渡县| 刚察县| 怀柔区| 迁安市| 沽源县| 威信县| 丘北县| 海口市| 理塘县| 华宁县| 南木林县| 疏勒县| 隆昌县| 正阳县| 石狮市| 乳源| 茌平县| 金沙县| 额敏县| 呼和浩特市| 东莞市| 宁城县| 嘉峪关市| 高密市| 乌恰县| 互助| 乐陵市| 布尔津县| 西华县| 甘德县| 灵璧县| 黄石市| 六盘水市| 临安市| 双鸭山市| 湘乡市| 普陀区|