zoukankan      html  css  js  c++  java
  • 09 Command Documentation 命令文档

    Command Documentation 命令文档

    There is a suite of programs to build and process Go source code. Instead of being run directly, programs in the suite are usually invoked by the go program.

    The most common way to run these programs is as a subcommand of the go program, for instance as go fmt. Run like this, the command operates on complete packages of Go source code, with the go program invoking the underlying binary with arguments appropriate to package-level processing.

    The programs can also be run as stand-alone binaries, with unmodified arguments, using the go toolsubcommand, such as go tool vet. This style of invocation allows, for instance, checking a single source file rather than an entire package: go tool vet myprogram.go as compared to go vet mypackage. Some of the commands, such as pprof, are accessible only through the go tool subcommand.

    Finally the fmt and godoc commands are installed as regular binaries called gofmt and godoc because they are so often referenced.

    Click on the links for more documentation, invocation methods, and usage details.

    Name    Synopsis
    go      The go program manages Go source code and runs the other commands listed here. See the command docs for usage details. 

    cgo      Cgo enables the creation of Go packages that call C code.
    cover      Cover is a program for creating and analyzing the coverage profiles generated by "go test -coverprofile".
    fix      Fix finds Go programs that use old features of the language and libraries and rewrites them to use newer ones.
    fmt      Fmt formats Go packages, it is also available as an independent gofmt command with more general options.
    godoc      Godoc extracts and generates documentation for Go packages.
    vet      Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

    This is an abridged list. See the full command reference for documentation of the compilers and more.

  • 相关阅读:
    英文网站优化之十个非常不错的Zen Cart插件
    kindeditor4.0.4个性化修改
    C#线程从陌生到熟悉(1)
    c# 关于LISTBOX的添加项的问题 以及不重复插入
    CSS设置字体为楷体
    SqlServer2005安装成功后补加Sa用户
    c# winform 用子窗体刷新父窗体,子窗体改变父窗体控件的值
    实例讲解如何把表格变量传递到存储过程中
    StringBuilder
    初学基于.net三层架构的ERP系统(1)
  • 原文地址:https://www.cnblogs.com/kaid/p/9698425.html
Copyright © 2011-2022 走看看