<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                go install 是 Go 中自動包安裝工具:如需要將包安裝到本地它會從遠端倉庫下載包:檢出、編譯和安裝一氣呵成。 在包安裝前的先決條件是要自動處理包自身依賴關系的安裝。被依賴的包也會安裝到子目錄下,但是沒有文檔和示例:可以到網上瀏覽。 go install 使用了 GOPATH 變量(詳見第 2.2 節)。 遠端包(詳見第 9.5 節): 假設我們要安裝一個有趣的包 tideland(它包含了許多幫助示例,參見?[項目主頁](http://code.google.com/p/tideland-cgl))。 因為我們需要創建目錄在 Go 安裝目錄下,所以我們需要使用 root 或者 su 的身份執行命令。 確保 Go 環境變量已經設置在 root 用戶下的?`./bashrc`?文件中。 使用命令安裝:`go install tideland-cgl.googlecode.com/hg`。 可執行文件?`hg.a`?將被放到?`$GOROOT/pkg/linux_amd64/tideland-cgl.googlecode.com`?目錄下,源碼文件被放置在`$GOROOT/src/tideland-cgl.googlecode.com/hg`?目錄下,同樣有個?`hg.a`?放置在?`_obj`?的子目錄下。 現在就可以在 go 代碼中使用這個包中的功能了,例如使用包名 cgl 導入: ~~~ import cgl "tideland-cgl.googlecode.com/hg" ~~~ 從 Go1 起 go install 安裝 Google Code 的導入路徑形式是:`"code.google.com/p/tideland-cgl"` 升級到新的版本: 更新到新版本的 Go 之后本地安裝包的二進制文件將全被刪除。如果你想更新,重編譯、重安裝所有的go安裝包可以使用:`go install -a`。 go 的版本發布的很頻繁,所以需要注意發布版本和包的兼容性。go1 之后都是自己編譯自己了。 go install 同樣可以使用 go install 編譯鏈接并安裝本地自己的包(詳見第 9.8.2 節)。 更多信息可以在?[官方網站](http://golang.org/cmd/go/)?找到。
                  <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>

                              哎呀哎呀视频在线观看