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

  • 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/.

主站蜘蛛池模板: 修文县| 大渡口区| 紫阳县| 襄樊市| 涟源市| 蒙自县| 文成县| 宽甸| 常山县| 车致| 美姑县| 胶南市| 镇康县| 乌兰察布市| 彭泽县| 洱源县| 留坝县| 喀喇沁旗| 泸水县| 三门峡市| 静宁县| 江口县| 和林格尔县| 商洛市| 深水埗区| 金阳县| 彝良县| 张家口市| 梁平县| 铅山县| 桐梓县| 阜新市| 正阳县| 奇台县| 汝城县| 博爱县| 苍南县| 五原县| 昌江| 惠来县| 调兵山市|