Star

IRIS

The fastest backend web framework for Go.

GET STARTED GITHUB

Crossplatform

Write once and run anywhere ie. Android, iOS, Linux and Windows etc. with the minimum machine power.

Easy To Use

It is backed on Google Go, only one excutable serve on all platforms. Iris known for simple and powerful api.

Service Oriented

Iris gives you the structure to build service oriented apps. It’s easy to build microservices with Iris.

Comparison with other frameworks

Installation

Note: Assuming that you have already installed Google Go. If not please follow installation guide

  • go get gopkg.in/kataras/iris.v6
  • _

Hello World

      package main
          import (
            "gopkg.in/kataras/iris.v6"
            "gopkg.in/kataras/iris.v6/adaptors/httprouter"
          )
          func main() {
            app := iris.New()
            app.Adapt(httprouter.New())
            app.HandleFunc("GET", "/", func(ctx *iris.Context) {
              ctx.Writef("hello world\n")
            })
            app.Listen(":8080")
          }
      
    

Save above code with main.go (its up to you) and run following command to start server

  • go run main.go
  •   _____      _
    |_   _|    (_)
      | |  ____ _  ___
      | | | __|| |/ __|
      _| |_| |  | |\__ \
    |_____|_|  |_||___/ √Νεxτ
    Serving HTTP on 127.0.0.1 port 8080 using httprouter
    _

Get Started