The only requirement is the Go Programming Language, at least v1.7.
兼容 go1.7+
$ go get -u github.com/kataras/iris/iris
this will update the dependencies also.
这将同时更新依赖。
-
If you are connected to the internet through China, according to this, you might have problems installing Iris.
Follow the below steps: -
如果你是在 中国 访问因特网,根据这个问题描述的你在安装 Iris 时可能会有遇到问题。
按照以下步骤操作:
-
$ go get github.com/kataras/iris/iris
without -u
$ go get github.com/kataras/iris/iris
不使用 -u
-
If you have any problems installing Iris, just delete the directory
$GOPATH/src/github.com/kataras/iris
, open your shell and rungo get -u github.com/kataras/iris/iris
.如果你在安装 Iris 过程中还有任何其它问题,只需要删除目录
$GOPATH/src/github.com/kataras/iris
, 打开 shell 并执行go get -u github.com/kataras/iris/iris
.
NOTE: If you want a stable version for production, then install v4 instead, its examples, book, middleware and plugins are expecting an import path of:
$ go get -u gopkg.in/kataras/iris.v4/iris