commit b508b19dbbf716a308bedaa4f08f84e886e06d68 Author: Ian Gulliver Date: Sun Dec 28 22:09:45 2025 -0800 Initial Go web server with Web Awesome hello world diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..dfcbcf2 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,9 @@ +- DO NOT add comments to code unless something is *incredibly* subtle +- Use e.g. map[string]bool{} instead of make() wherever possible +- Use all-lowercase log messages +- Prepend log messages with [ERROR] if applicable +- Don't mention claude in commit messages. Keep them to a single, short, descriptive sentence +- Always push after commiting +- Use git add -A so you don't miss files when committing +- Never use go build -- use go run instead +- DO NOT commit unless asked to \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..62a361f --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module tickets + +go 1.25.4 diff --git a/main.go b/main.go new file mode 100644 index 0000000..189dd30 --- /dev/null +++ b/main.go @@ -0,0 +1,13 @@ +package main + +import ( + "log" + "net/http" +) + +func main() { + http.Handle("/", http.FileServer(http.Dir("static"))) + + log.Println("server starting on :8080") + log.Fatal(http.ListenAndServe(":8080", nil)) +} diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..f9ca268 --- /dev/null +++ b/static/index.html @@ -0,0 +1,25 @@ + + + + + + Tickets App + + + + + + +

Hello World

+

Welcome to the Tickets App!

+ Get Started +
+ +