Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions statsviz.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// Package statsviz allows visualizing Go runtime metrics data in real time in
// your browser.
//
// Register a Statsviz HTTP handlers with your server's [http.ServeMux]
// Register Statsviz HTTP handlers with your server's [http.ServeMux]
// (preferred method):
//
// mux := http.NewServeMux()
// statsviz.Register(mux)
//
// Alternatively, you can register with [http.DefaultServeMux]:
// Alternatively, you can register with [http.DefaultServeMux]
// though you shouldn't do that in production:
//
// ss := statsviz.NewServer()
// ss.Register(http.DefaultServeMux)
Expand All @@ -27,7 +28,7 @@
//
// # Advanced usage:
//
// If you want more control over Statsviz HTTP handlers, examples are:
// If you want more control over Statsviz HTTP handlers, for examples if:
// - you're using some HTTP framework
// - you want to place Statsviz handler behind some middleware
//
Expand Down
Loading