File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11// Package statsviz allows visualizing Go runtime metrics data in real time in
22// your browser.
33//
4- // Register a Statsviz HTTP handlers with your server's [http.ServeMux]
4+ // Register Statsviz HTTP handlers with your server's [http.ServeMux]
55// (preferred method):
66//
77// mux := http.NewServeMux()
88// statsviz.Register(mux)
99//
10- // Alternatively, you can register with [http.DefaultServeMux]:
10+ // Alternatively, you can register with [http.DefaultServeMux]
11+ // though you shouldn't do that in production:
1112//
1213// ss := statsviz.NewServer()
1314// ss.Register(http.DefaultServeMux)
2728//
2829// # Advanced usage:
2930//
30- // If you want more control over Statsviz HTTP handlers, examples are :
31+ // If you want more control over Statsviz HTTP handlers, for examples if :
3132// - you're using some HTTP framework
3233// - you want to place Statsviz handler behind some middleware
3334//
You can’t perform that action at this time.
0 commit comments