在 Mac 环境下使用 REPL
Mac上安装Golang
brew install go
检查安装
go version
在Mac上编译安装 REPL环境
克隆gore项目
git clone https://github.com/motemen/gore.git
编译安装
cd gore/cmd/gore
go build
cp gore /usr/local/bin/
检查安装
gore
依赖安装
该项目使用了https://github.com/golang/text ,默认情况下未安装。建议手动安装
下载 zip 文件
找出go的安装路径
go env | grep GOROOT
进入源代码路径
cd /usr/local/Cellar/go/1.11.5/libexec/src
新建文件夹
mkdir -p golang.org/x/text/