Iterators in XMLProvider doing the locking

This commit is contained in:
Simon Martens
2025-03-16 21:10:52 +01:00
parent 534fabcb54
commit 5681f4f352
3 changed files with 59 additions and 29 deletions

View File

@@ -6,11 +6,12 @@ import (
)
type Letter struct {
XMLName xml.Name `xml:"letterText"`
Letter int `xml:"letter,attr"`
Pages []Page `xml:"page"`
Hands []RefElement `xml:"hand"`
Content string `xml:",innerxml"`
XMLName xml.Name `xml:"letterText"`
Letter int `xml:"letter,attr"`
Pages []Page `xml:"page"`
Hands []RefElement `xml:"hand"`
Content string `xml:",innerxml"`
Chardata string `xml:",chardata"`
}
func (l Letter) Keys() []any {