Air

A fast web framework for Go.

CI GitHub repo size Lines of code

Air is an easy-to-use, simple web framework for Go.

Usage example

Basic web server

app := air.New()
app.Get("/", func(c *air.Context) {
    ctx.String(200, "Hello World")
})
app.Listen(":8000")

Middlewares

app := air.New()
app.Use(func(c *air.Context) {
    fmt.Println(c.Method)
})

Router group

app := air.New()
user := app.Group("/user")
{
    user.Get("/", func(c *air.Context) {
        c.String(200, "Hello World")
    })
}

Meta

IceCafeCup – [email protected]

Distributed under the Apache-2.0 license. See LICENSE for more information.

Contributing

  1. Fork it (https://github.com/icecafecup/air/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

GitHub

View Github