<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 功能強大 支持多語言、二開方便! 廣告
                #Go 經典hello world 我們的第一個例子是打印經典的“hello world”信息,我們先看下代碼。 ```go package main import "fmt" func main() { fmt.Println("hello world") } ``` 輸出結果為: ``` $ ls el_01_hello_world.go $ go build el_01_hello_world.go $ ls el_01_hello_world el_01_hello_world.go $ ./el_01_hello_world hello world ``` 為了使一個`go文件`能夠`編譯`為`可執行文件`,包名必須是`main`,然后我們導入提供格式化輸出的`fmt`包,該程序的執行入口是`func main()`函數,在函數里面,我們使用`fmt`包提供的`Println`函數來輸出"hello world"字符串。 為了運行這個程序,我們可以使用`go run el_01_hello_world.go`來運行這個例子,這樣是直接輸出運行結果而不會產生任何中間文件。但是有的時候我們希望能夠將程序編譯為二進制文件保存起來,我們可以像上面一樣使用`go build el_01_hello_world.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>

                              哎呀哎呀视频在线观看