aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-09-22 21:25:49 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-09-22 21:25:49 +0200
commita2827963fbf6847166360be635c65dc85d20dd0d (patch)
tree3904f4a24733c4e097eb4baba4283973e5dabdbd /main.go
parentfb59ea2f57da2abf3c7bd76feddfaf10e109d2f4 (diff)
downloadtraedgaardstomten-a2827963fbf6847166360be635c65dc85d20dd0d.tar.gz
PHP FTW!
Diffstat (limited to 'main.go')
-rw-r--r--main.go22
1 files changed, 0 insertions, 22 deletions
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)
-}