烂翻译系列之Iris——新手入门——安装
Installation 安装
Iris is a cross-platform software.
Iris是一个跨平台软件。
The only requirement is the Go Programming Language, version 1.15 and above.
唯一的要求是Go编程语言,版本为1.14和以上。
Install 安装
在终端中执行以下命令以下载Iris:
$ go get github.com/kataras/iris/v12@master
Or edit your project's go.mod file.
或编辑你项目中的go.mod文件
module your_project_name
go 1.15
require (
github.com/kataras/iris/v12 master
)
在终端中执行以下命令以构建应用:
$ go build
Troubleshooting 故障排除
If you get a network error during installation please make sure you set a valid GOPROXY environment variable.
如果你在安装期间遇到网络错误,请确保你设置了可用的GOPROXY环境变量。
go env -w GOPROXY=https://goproxy.cn,https://gocenter.io,https://goproxy.io,direct
Perform a clean of your go modules cache if none of the above worked:
如果上面的设置不起作用,需要清理模块缓存:
go clean --modcache
作者:菜鸟吊思
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.
施主您好,贫僧接受供养,施主一粒米,大如须弥山!南无阿弥陀佛!
您学习别人出学费,只需先扫红包码,后扫支付码!

浙公网安备 33010602011771号