/debug/pprof
GO-S2108Importing net/http/pprof
will automatically expose a debug endpoint
/debug/pprof
that exposes sensitive application information such as the heap
profile and CPU profile, also impacting the application performance. It is
recommended to remove the net/http/pprof
import in production builds.
package main
import (
_ "net/http/pprof"
)