adding cakes 50% working

This commit is contained in:
Bronku 2025-01-31 22:56:21 +01:00
parent a09cee09c8
commit cd7c9a9d0c
8 changed files with 57 additions and 38 deletions

View file

@ -6,8 +6,14 @@ import (
"net/http"
)
type Cake struct {
Name string
Price int
}
type controller struct {
tmpl map[string]*template.Template
tmpl map[string]*template.Template
cakes map[int]Cake
http.Handler
}