LoginSignup
1
1

More than 5 years have passed since last update.

golang導入の備忘録

Last updated at Posted at 2015-05-02

Go Install

$ vi .zshrc

.zshrc
export PATH=$PATH:/usr/local/go/bin
export GOPATH=~/gocode
export PATH=$PATH:$GOPATH/bin

$ source .zshrc

$ vi hello.go

hello.go
package main
import "fmt"

func main(){
fmt.Printf("hello world\n")
}

$ go run hello.go

学習

Revel Tutorial参照

Revel Tutorial

Getting started

$ go get github.com/revel/revel
$ go get github.com/revel/cmd/revel

$ revel help

Creating a new Revel app

$ cd $GOPATH
$ revel new myapp

$ revel run myapp

http://localhost:9000/

Revel 学習

Revel Sample

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1