random changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user