diff options
| author | Terin Stock <terinjokes@gmail.com> | 2017-10-16 17:34:35 -0700 |
|---|---|---|
| committer | Tom Bergan <tombergan@google.com> | 2017-10-30 18:46:16 +0000 |
| commit | 01c144c410b09d8b56d40e7e9c54fface204aa29 (patch) | |
| tree | d42978955794490391d863edb5d5dbaf1182f3e0 /src/encoding/xml | |
| parent | 877387e38a734db8a2a151ddd4af7ba53bcf6460 (diff) | |
| download | go-01c144c410b09d8b56d40e7e9c54fface204aa29.tar.xz | |
net/http/pprof: attach handlers using http.HandleFunc
Simplify how pprof attaches the handlers to the DefaultMux by using
http.HandleFunc instead of manually wrapping the handlers in
a http.HandlerFunc.
Change-Id: I65db262ebb2e29e4b6f30df9d2688f5daf782c29
Reviewed-on: https://go-review.googlesource.com/71251
Reviewed-by: Sam Whited <sam@samwhited.com>
Reviewed-by: Tom Bergan <tombergan@google.com>
Run-TryBot: Sam Whited <sam@samwhited.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/xml')
0 files changed, 0 insertions, 0 deletions
