28 Installation
Gerasimos (Makis) Maropoulos edited this page 2020-07-29 03:48:17 +03:00

Iris is a cross-platform software.

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

$ go env -w GO111MODULE=on

Install

$ go get github.com/kataras/iris/v12@v12.1.8

Or edit your project's go.mod file.

module your_project_name

go 1.14

require (
    github.com/kataras/iris/v12 v12.1.8
)

$ go build

Troubleshooting

If you get a network error during installation please make sure you set a valid GOPROXY environment variable.

go env -w GOPROXY=https://goproxy.cn,https://gocenter.io,https://goproxy.io,direct