社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
macOS
安装包:https://golang.org/dl/,下载解压
编辑~/.bash_profile$ vi ~/.bash_profile
添加两条环境变量$ export GOROOT=/usr/local/go
$ export PATH=$PATH:$GOROOT/bin
source 使之生效$ source ~/.bash_profile
说明:
go version
检测是否安装成功package main
import "fmt"
func main(){
fmt.Println("hello world")
}
点击run
类 C 语言
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!