random changes

This commit is contained in:
2025-12-01 14:18:47 +00:00
parent eafc9c0033
commit 6789bc56d7
4 changed files with 446 additions and 259 deletions

View File

@@ -7,7 +7,7 @@ import (
)
type Plan struct {
Menus [3][7]string
Menus [7][3]string
}
func Load() (Plan, error) {
@@ -15,13 +15,13 @@ func Load() (Plan, error) {
if err != nil {
return Plan{}, err
}
var menus [3][7]string
var menus [7][3]string
reader := csv.NewReader(strings.NewReader(string(f)))
reader.Comma = ';'
records, err := reader.ReadAll()
for y := 0; y <= 2; y++ {
for x := 0; x <= 6; x++ {
menus[y][x] = records[y+1][x+1]
menus[x][y] = records[y+1][x+1]
}
}
return Plan{Menus: menus}, err