From a2827963fbf6847166360be635c65dc85d20dd0d Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Mon, 22 Sep 2025 21:25:49 +0200 Subject: PHP FTW! --- main.go | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go deleted file mode 100644 index 97d40a4..0000000 --- a/main.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "embed" - "io/fs" - "net/http" -) - -//go:embed public/* -var public embed.FS - -func must[T any](t T, err error) T { - if err != nil { - panic(err) - } - return t -} - -func main() { - http.Handle("/", http.FileServerFS(must(fs.Sub(public, "public")))) - http.ListenAndServe(":http", nil) -} -- cgit v1.2.3