adding cakes 50% working
This commit is contained in:
parent
a09cee09c8
commit
cd7c9a9d0c
8 changed files with 57 additions and 38 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue