adding fetching and saving an entire book
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
package models
|
||||
|
||||
type yaml struct {
|
||||
Strophes []struct {
|
||||
Lines []struct {
|
||||
Verse int `yaml:"verse"`
|
||||
Tet string `yaml:"text"`
|
||||
Who string `yaml:"who"`
|
||||
To string `yaml:"to"`
|
||||
} `yaml:"lines"`
|
||||
} `yaml:"strophes"`
|
||||
type Yaml struct {
|
||||
Strophes []Strophe `yaml:"strophes"`
|
||||
}
|
||||
|
||||
type Strophe struct {
|
||||
Lines []Line `yaml:"lines"`
|
||||
}
|
||||
|
||||
type Line struct {
|
||||
Verse int `yaml:"verse"`
|
||||
Text string `yaml:"text"`
|
||||
Who string `yaml:"who"`
|
||||
To string `yaml:"to"`
|
||||
Of string `yaml:"Of"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user