spellcheck, and refreshing cake list
This commit is contained in:
parent
2c90e19eba
commit
ea81abb718
9 changed files with 20 additions and 24 deletions
7
main.go
7
main.go
|
|
@ -3,15 +3,14 @@ package main
|
|||
import (
|
||||
"embed"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
//go:embed public
|
||||
var public embed.FS
|
||||
//var public embed.FS
|
||||
|
||||
//go:embed templates
|
||||
var templates embed.FS
|
||||
|
|
@ -23,7 +22,7 @@ func main() {
|
|||
c.LoadRouter(publicfs)
|
||||
c.cakes = make(map[int]Cake)
|
||||
c.cakes[0] = Cake{"Sernik", 120, 0}
|
||||
c.cakes[1] = Cake{"Malinowa chmórka", 120, 1}
|
||||
c.cakes[1] = Cake{"Malinowa chmurka", 120, 1}
|
||||
c.cakes[2] = Cake{"Beza Pavlova", 8, 2}
|
||||
|
||||
err := http.ListenAndServe(":8080", c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue