Check this out: http://flowerinthenight.com/blog/2016/08/20/expvar-gorilla-mux
On Monday, August 22, 2016 at 4:48:26 AM UTC+9, Amit Upadhyay wrote: > > expvar registers expvarHandler as init(), which registers it to global > mux. This is convenient in general. In my app I have a non global mux, and > I have no way to register it. In case of net/http/pprof the handlers are > exported. > > I have ended up copying expvarHandler() in my project. > > Should I file a bug to export expvarHandler? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.