Skip to content

Instantly share code, notes, and snippets.

@yukidarake
Last active August 29, 2015 14:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukidarake/a3cdf1b896be9688295b to your computer and use it in GitHub Desktop.
Save yukidarake/a3cdf1b896be9688295b to your computer and use it in GitHub Desktop.
#1

title: piggo#1 author: name: Toshiyuki Nakamura twitter: yukidarake url: https://github.com/yukidarake theme: sudodoki/reveal-cleaver-theme output: piggo1.html

--

piggo#1

--

Goって?

Googleの中の人が作った静的型付け言語

--

Goの売りは?

  • 速い(実行速度もコンパイルも)
  • 静的型付け言語だけどLLっぽさもある
  • シンプルな文法
  • クロスプラットフォーム(e.g. MacでWindows向けにコンパイル)
  • 周辺ツールが充実 (フォーマッタ、ユニットテストなど)

--

Goはどこで使われている?

--

パフォーマンス

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=マーティン・ファウラーが所属している会社

--

おやあの会社が

http://www.golangprojects.com/golang-go-job-hx-Software-Engineer-Go-Game-Server-San-Francisco-GREE-International.html

--

おやあの会社も

https://twitter.com/katryo/status/485020000898408448

--

Go言語やりたくなってきたでしょ?

では動かしてみましょう

--

Goをインストール

brew install go

--

環境変数設定

.bashrcに下記追記

export GOPATH=$HOME
export PATH=$PATH:$GOPATH/bin:$(go env GOROOT)/bin

※ 古い資料だとGOROOTも設定必要とか書いてるけど不要。

--

Hello world!

package main

import (
	"fmt"
)

func main() {
	fmt.Println("Hello world!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment