<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語言是一種靜態強類型、編譯型語言 ~~~ `timeStr:=time.Now().Format(``"2006-01-02 15:04:05"``)?``//當前時間的字符串,2006-01-02 15:04:05據說是golang的誕生時間,固定寫法` `fmt.Println(timeStr)???``//打印結果:2017-04-11 13:24:04` ~~~ go 版本發布:[https://golang.org/dl/](https://golang.org/dl/) 這個地址大概率打不開 一個全球代理為 Go 模塊而生 [https://goproxy.io/zh/](https://goproxy.io/zh/) ### 設置GOPATH ![](https://img.kancloud.cn/59/0a/590ab3f104b6ea7ad3de763f5d76d80d_517x588.png) ### gopath 下目錄文件 |-bin 編譯好的二進制文件 .exe |-pkg .a文件 給編譯器用的不需要關心 |-src 開發所用的包 ### 查看golang 環境變量 go env ![](https://img.kancloud.cn/75/5e/755e70ad3508041a4041c665c94ddd43_1035x572.png) ~~~shell go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct ~~~ ### go mod 使用 使用go mod 管理項目,就不需要非得把項目放到GOPATH指定目錄下 新建一個名為 wserver 的項目,項目路徑?D:\\test\\wserver (注意,該路徑并不在GOPATH里) 1.go mod init name(模塊名稱)初始化模塊,會在項目根目錄下生成 go.mod文件。 2.go mod tidy 根據go.mod文件來處理依賴關系。 3.go mod vendor 將依賴包復制到項目下的 vendor目錄 相關學習 Go語言入門教程,Golang入門教程(非常詳細)[http://c.biancheng.net/golang/](http://c.biancheng.net/golang/) 相關代碼實踐:http://code.9885.net/Lyn/gostudy.git 新手常犯錯誤:[https://www.jianshu.com/p/ccda5db7b9df](https://www.jianshu.com/p/ccda5db7b9df)
                  <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>

                              哎呀哎呀视频在线观看