Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
all: annotate some TODOs and print something when starting server
main.go | 5 +++++
diff --git a/main.go b/main.go index 42ff4aa513b9e5ebb357375b0ed0f1db915eec0b..99a937dcae901b53c84ae96518e89a161ba032ac 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,7 @@ func main() { flag.StringVar(&wikiPath, "wiki", wikiPath, "Wiki path") flag.Parse() + // TODO: Write an actual man page if wikiPath == "" { log.Fatalf("You'll need to point to the location of the wiki (--wiki)") @@ -45,6 +46,8 @@ router := chi.NewRouter() router.Use(middleware.RealIP) router.Use(middleware.Logger) + + // TODO: Make this configurable router.Get("/favicon.ico", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte("")) @@ -106,5 +109,7 @@ return } }) + // TODO: Make this configurable + log.Printf("Alive, at :3000") http.ListenAndServe(":3000", router) }