Go Hello World!

來源:互聯網
上載者:User

標籤:

有些事應該堅持去做 當你半途而廢的時候意味著你又要重新開始。那麼 Golang Hello world!

Java Android 新手 學習 Golang  First Day !

go 語言下載:

https://golang.org/dl

go 項目環境配置:

GOPATH:

我的是在G盤 G:\GoProject

ok 配置完畢 wind+R, cmd    go env查看:

接下來 用運行hello world

在GOProject 裡面建立Hello.go檔案 不是txt 檔案 記事本或者Notepad++開啟 

package main

import "fmt"

func main(){
fmt.Printf("hello,Girl\n")//個人習慣 嘿嘿
}

(接下來用Sublime Text3 hello Go!

:http://www.sublimetext.com/3 比較 輕量級 這一點比較爽 AS好占記憶體的 ==

View + Show Console : https://packagecontrol.io/installation#st3 複製 Sublime Text 3 部分代碼  enter。

靠 安裝Go sublime的時候卡住了

算了 用liteide算了 上面那種工具有時間在折騰吧(明天找到原因自己補上)).

 

LiteIDE列印hello world

參考:https://github.com/astaxie/Go-in-Action/blob/master/ebook/zh/02.1.md

列印成功 需要注意的是:http://www.jianshu.com/p/ed44e64b18e4

 

 感謝:http://blog.csdn.net/dc_726/article/details/46565241

         http://studygolang.com/topics/1891

         http://studygolang.com/search?q=Sublime+Text

         http://studygolang.com/articles/6484

         https://golang.org/

 

Go Hello World!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.