Skip to content

Instantly share code, notes, and snippets.

@Xiangshen-Meng
Created July 21, 2014 13:38
Show Gist options
  • Save Xiangshen-Meng/ca81cf146cb6565d7920 to your computer and use it in GitHub Desktop.
Save Xiangshen-Meng/ca81cf146cb6565d7920 to your computer and use it in GitHub Desktop.

ダウンロード

Download link.

wget http://golang.org/dl/go1.3.linux-amd64.tar.gz

解凍

tar zxvf go1.3.linux-amd64.tar.gz

開発環境の設定

export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=$HOME/xiangshen-meng

テスト

package main
import "fmt"

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