Skip to content

Instantly share code, notes, and snippets.

@giwa giwa/file0.txt
Created Jan 24, 2015

What would you like to do?
brew update
brew install go
export GOROOT=/usr/local/opt/go/libexec
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
package main
import "fmt"
func main() {
fmt.Println("hello world")
$ go run hello-world.go
hello world
$ go build hello-world.go
$ ls
hello-world hello-world.go
hello world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.