legit/main.go
Anirudh Oppiliappan 856f66808b
all: init
2022-12-11 11:22:47 +05:30

24 lines
366 B
Go

package main
import (
"flag"
"log"
"net/http"
"icyphox.sh/legit/config"
"icyphox.sh/legit/routes"
)
func main() {
var cfg string
flag.StringVar(&cfg, "config", "./config.yaml", "path to config file")
flag.Parse()
c, err := config.Read(cfg)
if err != nil {
log.Fatal(err)
}
mux := routes.Handlers(c)
log.Fatal(http.ListenAndServe(":5555", mux))
}