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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # golang簡介 Go語言是谷歌推出的一種全新的編程語言,可以在不損失應用程序性能的情況下降低代碼的復雜性。谷歌首席軟件工程師羅布派克(Rob Pike)說:我們之所以開發Go,是因為過去10多年間軟件開發的難度令人沮喪。 # golang官網 [http://golang.org/](http://golang.org/) # goland安裝 下載地址:[https://code.google.com/p/go/downloads/list](https://code.google.com/p/go/downloads/list) PS:安裝有兩種方法,使用MSI安裝,自動會幫助配置好環境變量。使用ZIP解壓后得自己手動設置環境變量。 # 環境變量說明 $GOROOT ?指向golang安裝之后的根目錄,windows平臺下默認為c:/go,會在安裝過程中由安裝程序自動寫入系統環境變量。 $GOARCH ?目標平臺(編譯后的目標平臺)的處理器架構(386、amd64、arm) $GOOS ? ? 目標平臺(編譯后的目標平臺)的操作系統(darwin、freebsd、linux、windows) $GOBIN ? ? 指向安裝之后根目錄下的bin目錄,即$GOROOT/bin,windows平臺下默認為c:/go/bin,會在安裝過程中由安裝程序自動添加到PATH變量中 -- 對于我們來說只需要配置GOROOT和GOBIN即可(如果你下載的是msi安裝后,就會自動寫入環境變量,而無需我們配置) 右鍵我的電腦-->屬性-->高級-->環境變量 新建GOROOT ? %goroot%(root解壓后的路徑) 將bin的路徑加入加入到path中 %GOROOT%\bin; 最后打開cmd,運行 go version,如果看到下面的信息說明配置環境變量成功 俺比較懶,所以選擇了MIS格式安裝,環境變量自動配置好。哈哈 # 永遠的"hello word" ~~~ /* *@go語言hello world *@author lxm *@time 2014.4.7 */ package main import "fmt" func main() { fmt.Printf("hello, world\n") } ~~~ 通過命令: go run ?hello.go 運行該案例 ![](https://box.kancloud.cn/2016-05-16_57396c274a352.jpg)
                  <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>

                              哎呀哎呀视频在线观看