summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-05-07 13:53:36 -0400
committerdemo <demo@antix1>2026-05-07 13:53:36 -0400
commit5f3ebd07dc7b416e4ef32a1f45fe6d077e6abe68 (patch)
tree7488a6099704dd6ddd7f56a4021ae11748079ee6
parent8b3d93fb01ea63b8daf77861fef1be837276652a (diff)
style: rename s to story
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 65d9321..10ae4c7 100644
--- a/main.go
+++ b/main.go
@@ -31,14 +31,14 @@ func main() {
log.Fatal(err)
}
- var s types.Story
- if err := json.Unmarshal(jsonBytes, &s); err != nil {
+ var story types.Story
+ if err := json.Unmarshal(jsonBytes, &story); err != nil {
log.Fatal(err)
}
// Set up the handlers and server.
mux := http.NewServeMux()
- mux.Handle("/{arc}", &s)
+ mux.Handle("/{arc}", &story)
log.Fatal(runServer(mux, *port))
}