12 lines
187 B
Go
12 lines
187 B
Go
|
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()) }
|
||
|
} ()
|
||
|
}
|