This commit is contained in:
kamkow1
2025-06-20 17:21:47 +02:00
commit c5f009654c
10 changed files with 2921 additions and 0 deletions

26
lts.go Normal file
View File

@ -0,0 +1,26 @@
package main
import (
"embed"
"html/template"
"log"
"net/http"
)
//go:embed tmpls/*
var tmpls embed.FS
//go:embed etc/*
var etc embed.FS
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
tmpl := template.Must(template.ParseFS(tmpls, "tmpls/*.html"))
if err := tmpl.Execute(w, nil); err != nil {
log.Fatal(err)
}
})
http.Handle("/etc/", http.FileServerFS(etc))
http.ListenAndServe(":9090", nil)
}