コマンドラインでのGo言語コマンドを表示するコマンドを行きます:
Go is a tool for managing Go source code. Usage: go command [arguments] The commands are: build compile packages and dependencies clean remove object files and cached files doc show documentation for package or symbol env print Go environment information bug start a bug report fix update packages to use new APIs fmt gofmt (reformat) package sources generate generate Go files by processing source get download and install packages and dependencies install compile and install packages and dependencies list list packages run compile and run Go program test test packages tool run specified go tool version print Go version vet report likely mistakes in packages Use "go help [command]" for more information about a command. Additional help topics: c calling between Go and C buildmode build modes cache build and test caching filetype file types gopath GOPATH environment variable environment environment variables importpath import path syntax packages package lists testflag testing flags testfunc testing functions Use "go help [topic]" for more information about that topic.
実用的なコマンド
godoc -http=:8888 本地启动一个go官网 也可以 go doc fmt.printf 直接在本地查看函数表准用法
ENV環境情報は、印刷のGo言語のために行きます。
runコマンドは、コマンドのソースファイルをコンパイルして実行することができます行きます。
要件に応じて取りに行くと、インターネットからダウンロードするか、実際の状況は、指定されたコードのパッケージとの依存関係を更新し、そして、彼らが構築してインストールすることができます。
私たちのソースコードファイルをコンパイル、またはコードのパッケージだけでなく、それらの依存関係を指定するために使用されるコマンドを構築して行きます。
コンパイルされ、指定されたコード・パケットとその依存関係のためにインストールをインストールして行きます。
他のコマンドを実行する際に作成したいくつかのファイルやディレクトリを削除しますcleanコマンドを行きます。
ドキュメントコマンドは囲碁のプログラミング言語の実体上のドキュメントを印刷するために添付することができます行きます。私たちは、コマンドのパラメータとして、それを表示するには、ドキュメントの目的を達成するために、エンティティの識別子をプログラムすることができます。
テスト用のGoプログラミング言語にテストコマンドを行きます。
ゴーlistコマンドの役割は、情報指定されたコードのパッケージを一覧表示することです。
すべての言語のソースコードファイルは、修正パッケージは、コードの新しい改訂版のコードの古いバージョンでコードを指定しますゴーゴー。
獣医が行く言語のソースコード静的エラーをチェックするためのシンプルなツールである行きます。
インタラクティブコンテンツのプロファイルにアクセスするためのコマンドpprofツールを行きます。