WIP types for JSON-encoded Bible data.
This commit is contained in:
parent
8d4f36da26
commit
907c55679d
1 changed files with 21 additions and 1 deletions
|
|
@ -35,7 +35,27 @@ type Chapter struct {
|
|||
//Verses
|
||||
}
|
||||
|
||||
type VerseSpec struct {
|
||||
type Content struct {
|
||||
Number int `json:"number"`
|
||||
Content []*ContentSpec `json:"content"`
|
||||
Footnotes []*NoteSpec `json:"footnotes"`
|
||||
}
|
||||
|
||||
type ContentSpec struct {
|
||||
Number int `json:"number"`
|
||||
Type string `json:"type"`
|
||||
}
|
||||
|
||||
type NoteSpec struct {
|
||||
Id int `json:"noteId"`
|
||||
Caller string `json:"caller"`
|
||||
Text string `json:"text"`
|
||||
Reference *RefSpec `json:"reference"`
|
||||
}
|
||||
|
||||
type RefSpec struct {
|
||||
Chapter int `json:"chapter"`
|
||||
Verse int `json:"verse"`
|
||||
}
|
||||
|
||||
type Scripture struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue