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

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                > ### 包管理工具 go vendor * 安裝 ~~~ go get github.com/kardianos/govendor ~~~ > ### 例子 * 我在demo1項目下寫了一個main.go的例子, 其中用到了第三方庫([github.com/gorilla/websocket](http://github.com/gorilla/websocket)) * 下載第三方庫 go get[github.com/gorilla/websocket](http://github.com/gorilla/websocket)(下載完后會放到GOPATH/src目錄下) ~~~ package main import ( "github.com/gorilla/websocket" "net/http" "fmt" ) var upgrader = websocket.Upgrader{ CheckOrigin: func(r *http.Request) bool { return true }, } func home(w http.ResponseWriter, r *http.Request) { c, err := upgrader.Upgrade(w, r, nil) if err != nil { fmt.Println(err.Error()) } defer c.Close() } func main() { fmt.Println("Starting...") http.HandleFunc("/", home) if err := http.ListenAndServe(":20001", nil); err != nil { fmt.Println(err.Error()) } } ~~~ * 初始化 ~~~ govendor init ~~~ ![](https://img.kancloud.cn/cf/da/cfda3f6cc9771d7cf84736ddab363281_955x343.png) * 添加所有外部庫 ~~~ govendor add +e ~~~ ![](https://img.kancloud.cn/16/43/16438cc204aba79eb6c1e923ac08ce62_1043x407.png) > ### 相關閱讀 * [Golang包管理工具之govendor的使用](https://www.cnblogs.com/liuzhongchao/p/9233177.html)
                  <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>

                              哎呀哎呀视频在线观看