github.com/go-board/x-go@v0.1.2-0.20220610024734-db1323f6cb15/xdebug/panic.go (about) 1 package xdebug 2 3 import ( 4 "net/http" 5 ) 6 7 type panicHandler struct{} 8 9 func (panicHandler) ServeHTTP(http.ResponseWriter, *http.Request) { panic("user panic") } 10 11 // PanicHandler return panic handler 12 func PanicHandler() http.Handler { return panicHandler{} }