main() { var n int // zero value var i, j int = 1, 2 k := 3 c, python, java := true, false, "please, no!" fmt.Println(n,i, j, k, c, python, java) } // 0, 1, 2, 3, true, false, “no!” Variáveis Go 101
string) } func (t team) Sing(lyrics string) { fmt.Println(lyrics) } func main() { t := team{name: "Santos", libertadores: 3} t.Sing("Agora quem dá bola é o Santos!") } Interfaces OOP
$GOPATH/src/github.com/me/example $ curl https://raw.githubusercontent.com/golang/dep/master /install.sh | sh $ dep init $ ls Gopkg.toml Gopkg.lock vendor/
Go! - Talks How Do You Structure Your Go Apps - Kat Zien Concurrency Is Not Parallelism - Rob Pike Go Concurrency Patterns - Google I/O 2012 - Rob Pike