この資料はGo弱の会向けに作成中の資料です。 Go強の方がいらっしゃいましたら補足とかもらえると助かります。
- 本家
- http://golang.org/
- ドキュメント
- http://golang.org/doc/
- pkg等
- homebrew
- export GOROOT="/usr/local/Cellar/go/1.1.1"
- export GOPATH=$HOME/go #作業ディレクトリ
- export PATH=$PATH:$GOPATH/bin
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
}
- How to Write Go Code
http://golang.org/doc/effective_go.html
-
for
-
slice
-
Range
-
map
-
structs
-
Function
-
http://golang.org/doc/effective_go.html#functions
- Multiple return values
- Named result parameters
- Defer
-
concurrency
- go build
- go env #環境の確認
- go fmt #フォーマット
- go get
- go install #compile and install
- sublimeText2 + GoSublime
- goclipse
- http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/
- go get github.com/nsf/gocode
http://go-tour-jp.appspot.com/
https://developers.google.com/appengine/?hl=ja
https://developers.google.com/appengine/?hl=en
https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go
https://developers.google.com/appengine/docs/go/gettingstarted/introduction