Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumGopprof basicsSingle-choice MCQ

You add `import _ "net/http/pprof"` and start `http.ListenAndServe(":6060", nil)`. Why does the profiling endpoint become reachable at /debug/pprof/ without any explicit handler registration?

import _ "net/http/pprof" func main() { go http.ListenAndServe(":6060", nil) // ... }