main.go
package main import ( "context" "log" "net/http" "j3s.sh/gore/internal/assets" "j3s.sh/gore/internal/module" ) 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 /submit", submitHandler) module.Resolve(context.TODO(), "git.j3s.sh/vore", "latest") log.Println("Starting Gore server on :6043...") log.Fatal(http.ListenAndServe(":6043", nil)) }