Add files
This commit is contained in:
parent
1d823c28d9
commit
8040e56bd0
11
hook/hook.go
Normal file
11
hook/hook.go
Normal file
@ -0,0 +1,11 @@
|
||||
package hook
|
||||
|
||||
import "net/http"
|
||||
import _ "net/http/pprof"
|
||||
|
||||
func init () {
|
||||
go func () {
|
||||
err := http.ListenAndServe("localhost:9090", nil)
|
||||
if err != nil { panic(err.Error()) }
|
||||
} ()
|
||||
}
|
Loading…
Reference in New Issue
Block a user