Initial commit

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2024-12-13 21:19:16 +00:00
commit fc6fc03dbc
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
10 changed files with 714 additions and 0 deletions

15
cmd/server/main.go Normal file
View file

@ -0,0 +1,15 @@
package main
import (
"fmt"
"net/http"
)
func main() {
fmt.Println("listening on http://localhost:9090/")
err := http.ListenAndServe(":9090", http.FileServer(http.Dir("./assets")))
if err != nil {
fmt.Println("Failed to start server", err)
return
}
}