Add files

This commit is contained in:
Sasha Koshka 2023-03-08 20:16:09 -05:00
parent 1d823c28d9
commit 8040e56bd0
2 changed files with 14 additions and 0 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.tebibyte.media/sashakoshka/ezprof
go 1.20

11
hook/hook.go Normal file
View 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()) }
} ()
}