add pprof
All checks were successful
Build and push image / deploy (push) Successful in 1m50s

This commit is contained in:
2023-12-28 19:13:23 +03:00
parent f983091e2b
commit b1f7f1d91a

View File

@ -4,6 +4,9 @@ import (
"log"
"os"
"net/http"
_ "net/http/pprof"
"github.com/joho/godotenv"
"github.com/urfave/cli/v2"
)
@ -15,6 +18,10 @@ func init() {
var commands = make([]*cli.Command, 0)
func main() {
go func() {
log.Println(http.ListenAndServe("localhost:60089", nil))
}()
s := &cli.App{
Name: "platiparser",
Commands: commands,