expvarhandler - ActiveState ActiveGo 1.8
...

Package expvarhandler

import "github.com/valyala/fasthttp/expvarhandler"
Overview
Index

Overview ▾

Package expvarhandler provides fasthttp-compatible request handler serving expvars.

func ExpvarHandler

func ExpvarHandler(ctx *fasthttp.RequestCtx)

ExpvarHandler dumps json representation of expvars to http response.

Expvars may be filtered by regexp provided via 'r' query argument.

See https://golang.org/pkg/expvar/ for details.