Micro & pluggable web framework for Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.0KB

Tango Build Status

Tango Logo

Package tango is a micro & pluggable web framework in Go.

Current version: 0.1.0

Getting Started

To install Tango:

go get github.com/lunny/tango

The very basic usage of Tango:

package main

import "github.com/lunny/tango"

func main() {
    t := tango.Classic()
    t.Get("/", func() string {
        return "Hello world!"
    })
    t.Run()
}

Features

  • Powerful routing & Flexible routes combinations.
  • Directly integrate with existing services.
  • Easy to plugin/unplugin features with modular design.
  • High Performance dependency injection embbed.

Middlewares

Middlewares allow you easily plugin/unplugin features for your Tango applications.

There are already many middlewares to simplify your work:

  • compress - Gzip & Deflate compression

  • static - Serves static files

  • logger - Log the request & inject Logger to action struct

  • return - Handle the returned value smartlly

  • request - Inject request to action struct

  • response - Inject response to action struct

  • session - Session manager

  • xsrf - Generates and validates csrf tokens

  • bind - Bind and validates forms

  • render - Go template engine

  • dispatch - Multiple Application support on one server

  • pango2 - Pango2 teamplte engine support

Use Cases

Getting Help

Credits

License

This project is under BSD License. See the LICENSE file for the full license text.