安装GO编译器
时间:2010-09-14 来源:badb0y
yum install python-setuptools
easy_install mercurial
cd /
mkdir go
hg clone -r release https://go.googlecode.com/hg go
cd go/src
./all.bash
export PATH=$PATH:/go/bin
cat >hello.go <<EOF
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
EOF
8g hello.go 8l hello.8 ./8.out hello, world http://golang.org/doc/install.html http://code.google.com/p/go
package main
import "fmt"
func main() {
fmt.Printf("hello, world\n")
}
EOF
8g hello.go 8l hello.8 ./8.out hello, world http://golang.org/doc/install.html http://code.google.com/p/go
相关阅读 更多 +