@daaoling
2016-10-05T13:34:01.000000Z
字数 926
阅读 1791
Go
相关学习代码地址
https://git.oschina.net/daao/Go.git
tar -C /usr/local -xzf go1.6.2.darwin-amd64.tar.gz
export GOROOT=/usr/local/go
export GOPATH=~/Development/go
export PATH=$PATH:$GOROOT/bin
zjy$ go version
go version go1.6.2 darwin/amd64
GOROOT=C:\go
Path = %GOROOT%\bin
The godoc tool is intended primarily to run a documentation server in your browser on localhost.
godoc -http=":6060"
LiteIDE
http://www.golangtc.com/download/liteide
GOPATH=/home/user/gocode
/home/user/gocode/
src/
foo/
bar/ (go code in package bar)
x.go
quux/ (go code in package main)
y.go
bin/
quux (installed command)
pkg/
linux_amd64/
foo/
bar.a (installed package object)
go install
go build and run
运行的时候发现个错误:
./main.go:10: cannot refer to unexported name mMath.test
mMath.test 首个字母大写,无语了
go help gopath
http://blog.studygolang.com/2013/01/%E5%86%8D%E7%9C%8Bgopath/
beego的作者的开源书籍 https://github.com/astaxie/build-web-application-with-golang