Watch Star Fork

lunny / tangoGoMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading... 9.20 KB

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.

Comments ( 0 )

You need to Sign in for post a comment

11_float_left_people 11_float_left_close