<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                假如你已安裝了golang環境,你可以在命令行執行go命令查看相關的Go語言命令: ~~~ $ 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 doc show documentation for package or symbol env print Go environment information bug start a bug report fix run go tool fix on packages fmt run gofmt on 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 run go tool vet on packages Use "go help [command]" for more information about a command. Additional help topics: c calling between Go and C buildmode description of build modes filetype file types gopath GOPATH environment variable environment environment variables importpath import path syntax packages description of package lists testflag description of testing flags testfunc description of testing functions Use "go help [topic]" for more information about that topic. ~~~ go env用于打印Go語言的環境信息。 go run命令可以編譯并運行命令源碼文件。 go get可以根據要求和實際情況從互聯網上下載或更新指定的代碼包及其依賴包,并對它們進行編譯和安裝。 go build命令用于編譯我們指定的源碼文件或代碼包以及它們的依賴包。 go install用于編譯并安裝指定的代碼包及它們的依賴包。 go clean命令會刪除掉執行其它命令時產生的一些文件和目錄。 go doc命令可以打印附于Go語言程序實體上的文檔。我們可以通過把程序實體的標識符作為該命令的參數來達到查看其文檔的目的。 go test命令用于對Go語言編寫的程序進行測試。 go list命令的作用是列出指定的代碼包的信息。 go fix會把指定代碼包的所有Go語言源碼文件中的舊版本代碼修正為新版本的代碼。 go vet是一個用于檢查Go語言源碼中靜態錯誤的簡單工具。 go tool pprof命令來交互式的訪問概要文件的內容。 [標準命令詳解](http://wiki.jikexueyuan.com/project/go-command-tutorial/0.0.html) 用戶`go get`無法下載翻墻的時候的包,可以用`gopm`下載 # 什么是gopm 在nodejs中我們有npm,可以通過npm來下載安裝一些依賴包。在go中也開發了類似的東西,那就是gopm。這玩意兒是七牛開發的。在這里說下,七牛公司大部分程序都是用go語言編寫的,所以開發出這么一個方便的東西肯定也是合情合理的。 ### gopm 安裝 ~~~ go get github.com/gpmgo/gopm go install github.com/gpmgo/gopm ~~~ 通過這個命令來安裝插件,默認的會存放到GOBIN,如果沒有配置%GOBIN%環境變量,那么會默認安裝到%GOPATH%下的bin目錄,為了我們操作方便,我們把GOBIN加到%PATH%下。 ### 使用說明 ~~~ NAME: Gopm - Go Package Manager USAGE: Gopm [global options] command [command options] [arguments...] VERSION: 0.8.8.0307 Beta COMMANDS: list list all dependencies of current project gen generate a gopmfile for current Go project get fetch remote package(s) and dependencies bin download and link dependencies and build binary config configure gopm settings run link dependencies and go run test link dependencies and go test build link dependencies and go build install link dependencies and go install clean clean all temporary files update check and update gopm resources including itself help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --noterm, -n disable color output --strict, -s strict mode --debug, -d debug mode --help, -h show help --version, -v print the version ~~~ ### exmaple ~~~ gopm get -g -v -u golang.org/x/tools/cmd/goimports ~~~ 通過`gopm get xxx`,可以將指定的包下載到gopm的本地倉庫`~/.gopm/repos`(建議使用) 通過'gopm get -g xxx',可以將指定的包下載到GOPATH下。(建議使用) 通過'gopm get -l xxx',可以將指定的包下載到當前所在目錄(不常用)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看