package
0.1.1
Repository: https://github.com/go-board/x-go.git
Documentation: pkg.go.dev

# README

XDebug

一些调试工具。

Dump 美化输出

Gc 垃圾收集 http endpoint handler

type gc struct{}

func (gc) ServeHTTP(http.ResponseWriter, *http.Request) { ... }

PProf 性能调优

// 注册pprof handler 到 *http.ServeMux上面
func PProfHandlers(h *http.ServeMux)

# Functions

GcHandler return gc handler.
HTTPPProf mount pprof handler on http.ServerMux.
PanicHandler return panic handler.
PProfHandlers returns a map of pprof handlers keyed by the HTTP path.