摘要:
package main import( "fmt" ) //变量 名字 类型 func add(a int, b int) int { var sum int sum = a + b return sum } func main() { //调用 var c int c = add(100, 20 阅读全文
摘要:
## 1.安装Go a.打开网址http://golang.org/dl/ b.根据操作系统选择对应的安装包 c.点击安装包进行安装(linux直接解压) d.设置环境变量 1.export GOROOT=$PATH:/path/to/go/ 2.export PATH=$PATH:$GOROOT/ 阅读全文