All Projects → lunny → Tango

lunny / Tango

Licence: mit
This is only a mirror and Moved to https://gitea.com/lunny/tango

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Tango

Silicon
A high performance, middleware oriented C++14 http web framework please use matt-42/lithium instead
Stars: ✭ 1,721 (+105.62%)
Mutual labels:  middleware, webframework
Twig
Twig - less is more's web server for golang
Stars: ✭ 98 (-88.29%)
Mutual labels:  middleware, webframework
polix
🚀 Node.js Web Framework
Stars: ✭ 32 (-96.18%)
Mutual labels:  middleware, webframework
Dotweb
Simple and easy go web micro framework
Stars: ✭ 1,354 (+61.77%)
Mutual labels:  middleware, webframework
Webgo
A minimal framework to build web apps; with handler chaining, middleware support; and most of all standard library compliant HTTP handlers(i.e. http.HandlerFunc).
Stars: ✭ 165 (-80.29%)
Mutual labels:  middleware, webframework
Golf
⛳️ The Golf web framework
Stars: ✭ 248 (-70.37%)
Mutual labels:  middleware, webframework
Xweb
High performance async web framework.
Stars: ✭ 314 (-62.49%)
Mutual labels:  middleware, webframework
Psr7 Middlewares
[DEPRECATED] Collection of PSR-7 middlewares
Stars: ✭ 666 (-20.43%)
Mutual labels:  middleware
Ocelot
.NET core API Gateway
Stars: ✭ 6,675 (+697.49%)
Mutual labels:  middleware
Aah
A secure, flexible, rapid Go web framework
Stars: ✭ 647 (-22.7%)
Mutual labels:  webframework
Csrf
gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention middleware for Go web applications & services 🔒
Stars: ✭ 631 (-24.61%)
Mutual labels:  middleware
Cutelyst
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Stars: ✭ 671 (-19.83%)
Mutual labels:  webframework
Fast Dds
The most complete DDS - Proven: Plenty of success cases.
Stars: ✭ 732 (-12.54%)
Mutual labels:  middleware
Jackett
API Support for your favorite torrent trackers
Stars: ✭ 6,690 (+699.28%)
Mutual labels:  middleware
Tg2
Python web framework with full-stack layer implemented on top of a microframework core with support for MongoDB, Pluggable Applications and autogenerated Admin
Stars: ✭ 756 (-9.68%)
Mutual labels:  webframework
Amethyst
Amethyst is a Rails inspired web-framework for Crystal language
Stars: ✭ 643 (-23.18%)
Mutual labels:  middleware
Omniauth Pge
OmniAuth Strategy for PG&E
Stars: ✭ 6 (-99.28%)
Mutual labels:  middleware
Buffalo
Rapid Web Development w/ Go
Stars: ✭ 6,476 (+673.72%)
Mutual labels:  webframework
Slim Jwt Auth
PSR-7 and PSR-15 JWT Authentication Middleware
Stars: ✭ 713 (-14.81%)
Mutual labels:  middleware
Prologue
Prologue is an elegant web framework written in Nim.
Stars: ✭ 700 (-16.37%)
Mutual labels:  webframework

Tango 简体中文

CircleCI codecov Join the chat at https://img.shields.io/discord/323705316027924491.svg

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 github.com/lunny/tango

A classic usage of Tango below:

package main

import (
    "errors"
    "github.com/lunny/tango"
)

type Action struct {
    tango.JSON
}

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))
    t.Run()
}

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.

Features

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

Middlewares

Middlewares allow you easily plugin features for your Tango applications.

There are already many middlewares to simplify your work:

Documentation

Discuss

Cases

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].