Awesome Open Source
Awesome Open Source

Tango 简体中文

CircleCI codecov Join the chat at

Tango Logo

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

Current version: v0.5.0 Version History

Getting Started

To install Tango:

go get

A classic usage of Tango below:

package main

import (

type Action struct {

func (Action) Get() interface{} {
    if true {
        return map[string]string{
            "say": "Hello tango!",
    return errors.New("something error")

func main() {
    t := tango.Classic()
    t.Get("/", new(Action))

Then visit http://localhost:8000 on your browser. You will get

{"say":"Hello tango!"}

If you change true after if to false, then you will get

{"err":"something error"}

This code will automatically convert returned map or error to a json because we has an embedded struct tango.JSON.


  • Powerful routing & Flexible routes combinations.
  • Directly integrate with existing services.
  • Easy to plugin features with modular design.
  • High performance dependency injection embedded.


Middlewares allow you easily plugin features for your Tango applications.

There are already many middlewares to simplify your work:





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

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Golang (163,767
Go (163,767
Session (14,147
Struct (5,577
Captcha (2,504
Web Framework (2,251
Rbac (1,382