small pixel drawing of a pufferfish gore

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 /submit", submitHandler)

	log.Println("Starting Gore server on :6043...")
	log.Fatal(http.ListenAndServe(":6043", nil))
}