title: piggo#1 author: name: Toshiyuki Nakamura twitter: yukidarake url: https://github.com/yukidarake theme: sudodoki/reveal-cleaver-theme output: piggo1.html
--
--
Googleの中の人が作った静的型付け言語
--
- 速い(実行速度もコンパイルも)
- 静的型付け言語だけどLLっぽさもある
- シンプルな文法
- クロスプラットフォーム(e.g. MacでWindows向けにコンパイル)
- 周辺ツールが充実 (フォーマッタ、ユニットテストなど)
--
- Google dl.google.comとか
- Docker https://github.com/dotcloud/docker
- Dropbox https://github.com/dropbox/godropbox
- Serf https://github.com/hashicorp/serf
- herokuのcli hk https://github.com/heroku/hk
--
JSONを返すだけなら最強
http://www.techempower.com/benchmarks/###section=data-r9&hw=i7&test=json
--
ThoughtWorksのTechnology Radarでついにadoptになった!
http://www.thoughtworks.com/radar/###/languages-and-frameworks
※ThoughtWorks=マーティン・ファウラーが所属している会社
--
--
https://twitter.com/katryo/status/485020000898408448
--
では動かしてみましょう
--
brew install go
--
.bashrcに下記追記
export GOPATH=$HOME
export PATH=$PATH:$GOPATH/bin:$(go env GOROOT)/bin
※ 古い資料だとGOROOTも設定必要とか書いてるけど不要。
--
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello world!")
}