aboutsummaryrefslogtreecommitdiff
path: root/pprofhandler
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-11 13:59:44 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-11 19:59:44 +0800
commit5147cecec7d2afedb510e9e5b7a3fb7f35022653 (patch)
treed8242937d34e26d87e407e5648661e6f02e19b1e /pprofhandler
parentRefactor golangci-lint config and remove redundant nolints (#1486) (diff)
downloadfasthttp-5147cecec7d2afedb510e9e5b7a3fb7f35022653.tar.gz
fasthttp-5147cecec7d2afedb510e9e5b7a3fb7f35022653.tar.bz2
fasthttp-5147cecec7d2afedb510e9e5b7a3fb7f35022653.zip
docs: replace links to golang.org with go.dev (#1489)
- Replace https://godoc.org with https://pkg.go.dev. - Replace https://golang.org with https://go.dev. - Replace https://golang.org/pkg with https://pkg.go.dev. - Replace https://blog.golang.org with https://go.dev/blog. - Use https://pkg.go.dev/golang.org/x/net/http2 instead of non-existing https://http2.golang.org/. - Remove trailing slashes.
Diffstat (limited to 'pprofhandler')
-rw-r--r--pprofhandler/pprof.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pprofhandler/pprof.go b/pprofhandler/pprof.go
index c94d2c1..7709e4c 100644
--- a/pprofhandler/pprof.go
+++ b/pprofhandler/pprof.go
@@ -19,7 +19,7 @@ var (
// PprofHandler serves server runtime profiling data in the format expected by the pprof visualization tool.
//
-// See https://golang.org/pkg/net/http/pprof/ for details.
+// See https://pkg.go.dev/net/http/pprof for details.
func PprofHandler(ctx *fasthttp.RequestCtx) {
ctx.Response.Header.Set("Content-Type", "text/html")
if strings.HasPrefix(string(ctx.Path()), "/debug/pprof/cmdline") {