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