Installing Iris

Iris is a cross-platform software.

The only requirement is the Go Programming Language, version 1.13 and above.

$ cd $YOUR_PROJECT_PATH
$ export GO111MODULE=on

Install

$ go get github.com/kataras/iris@master

Or edit your project's go.mod file, add the following pseudo-version and execute $ go build.

module your_project_name
go 1.13
require (
github.com/kataras/iris v0.0.0-20191005193354-55afd07befa8
)

$ go build

How to update

Here is the go-get command to get the latest and greatest Iris version. Master branch is usually stable enough.

$ go get -u github.com/kataras/iris

Troubleshooting

If you get a network error during installation please make sure you set a valid GOPROXY environment variable e.g. GOPROXY=https://goproxy.io or GOPROXY=https://goproxy.cn.

Continue by reading our Getting Started tutorial.