main.go
package main import ( "log" "net/http" "j3s.sh/gore/internal/assets" ) var ( buildTimestamp = "uninitialized" hostname string ) func main() { http.HandleFunc("GET /", indexHandler) http.Handle("GET /assets/", http.StripPrefix("/assets/", http.FileServer(http.FS(assets.Assets)))) http.HandleFunc("POST /add", addHandler) if err := SuperviseServices(services); err != nil { log.Fatal(err) } log.Println("Starting Gore server on :6043...") log.Fatal(http.ListenAndServe(":6043", nil)) }