Switch Show to pointer slices, share objects between Show and Timeline

This commit is contained in:
Ian Gulliver
2026-02-20 17:06:43 -07:00
parent a7e831cfab
commit 69402ea2e4
2 changed files with 19 additions and 20 deletions

View File

@@ -102,16 +102,16 @@ func main() {
}
}
func loadMockShow() (Show, error) {
func loadMockShow() (*Show, error) {
buf, err := staticFS.ReadFile("static/show.json")
if err != nil {
return Show{}, err
return nil, err
}
var show Show
if err := json.Unmarshal(buf, &show); err != nil {
return Show{}, err
return nil, err
}
return show, nil
return &show, nil
}
func writeJSON(w http.ResponseWriter, v any) {