Debug middleware for tango
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.
Lunny Xiao 83f604669a
continuous-integration/drone/push Build is passing Details
add drone.yml
4 years ago
.drone.yml add drone.yml 4 years ago
LICENSE license 8 years ago add drone.yml 4 years ago
circle.yml update CI config 6 years ago
debug.go new options 4 years ago
debug_test.go move from github 4 years ago
go.mod new options 4 years ago
go.sum new options 4 years ago

debug Build Status

Middleware debug is a debug middleware for Tango.


go get

Simple Example

type DebugAction struct {

func (c *DebugAction) Get() {

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

When you run this, then you will find debug info on console or log file, it will show you the request detail info and response detail.

[tango] 2015/03/04 06:44:06 [Debug] debug.go:53 [debug] request: GET http://localhost:3000/
[tango] 2015/03/04 06:44:06 [Debug] debug.go:55 [debug] head: map[]
[tango] 2015/03/04 06:44:06 [Debug] debug.go:66 [debug] ----------------------- end request
[tango] 2015/03/04 06:44:06 [Debug] debug.go:78 [debug] response ------------------ 200
[tango] 2015/03/04 06:44:06 [Debug] debug.go:80 [debug] head: map[]
[tango] 2015/03/04 06:44:06 [Debug] debug.go:83 [debug] body: debug
[tango] 2015/03/04 06:44:06 [Debug] debug.go:85 [debug] ----------------------- end response


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