top

Package iris the fastest go web framework in (this) Earth. /NOTE: When you see 'framework' or 'station' we mean the Iris web framework's main implementation.

Basic usage ----------------------------------------------------------------------

package main

import "github.com/kataras/iris"

func main() {

iris.Get("/hi_json", func(c *iris.Context) {
    c.JSON(200, iris.Map{
        "Name": "Iris",
        "Age":  2,
    })
})
iris.Listen(":8080")

}

----------------------------------------------------------------------

package main

import "github.com/kataras/iris"

func main() {

s1 := iris.New()
s1.Get("/hi_json", func(c *iris.Context) {
	c.JSON(200, iris.Map{
		"Name": "Iris",
		"Age":  2,
	})
})

s2 := iris.New()
s2.Get("/hi_raw_html", func(c *iris.Context) {
	c.HTML(iris.StatusOK, "<b> Iris </b> welcomes <h1>you!</h1>")
})

go s1.Listen(":8080")
s2.Listen(":1993")

}

-----------------------------DOCUMENTATION---------------------------- ----------------------------_______________--------------------------- For middleware, template engines, response engines, sessions, websockets, mails, subdomains, dynamic subdomains, routes, party of subdomains & routes and much more visit https://www.gitbook.com/book/kataras/iris/details

Imports 21 package(s) ΒΆ

  1. github.com/valyala/fasthttp
  2. github.com/kataras/go-template/html
  3. golang.org/x/crypto/ssh
  4. github.com/kataras/go-errors
  5. github.com/valyala/fasthttp/fasthttpadaptor
  6. github.com/kataras/iris/utils
  7. github.com/iris-contrib/formBinder
  8. github.com/kardianos/service
  9. github.com/kataras/go-template
  10. github.com/kataras/go-fs
  11. github.com/kataras/go-options
  12. github.com/kataras/go-sessions
  13. github.com/iris-contrib/letsencrypt
  14. github.com/kataras/go-websocket
  15. github.com/gavv/httpexpect
  16. golang.org/x/crypto/ssh/terminal
  17. github.com/kataras/iris/context
  18. github.com/kataras/go-serializer
  19. github.com/kardianos/osext
  20. github.com/iris-contrib/websocket
  21. github.com/imdario/mergo