Iris 是一个跨平台的软件。
唯一的需求就是 Go 语言,版本为1.13。
$ cd $YOUR_PROJECT_PATH$ export GO111MODULE=on
安装(Install)
go get github.com/kataras/iris/v12@latest
或者编辑你项目的 go.mod 文件。
module your_project_namego 1.13require (github.com/kataras/iris/v12 v12.0.0)
然后:
go build
怎么更新(How to update)
这个 go-get 命令来获取最新和最好的 Iris 版本。 Master 分支通常足够稳定了。
$ go get -u github.com/kataras/iris/v12@latest
故障排除(Troubleshooting)
如果你在安装过程中出现了网络错误,你确保你设置了一个可用的 GOPROXY 环境变量,例如 GOPROXY=https://goproxy.io 或者 GOPROXY=https://goproxy.cn。
