Speed up startup

This commit is contained in:
Simon Martens
2024-11-10 19:05:06 +01:00
parent a81e78c0fd
commit bdd4eeab26
14 changed files with 463 additions and 208 deletions

View File

@@ -15,24 +15,14 @@ type Works struct {
}
type Work struct {
ID string `xml:"id,attr"`
XMLName xml.Name `xml:"werk"`
URLs []URL `xml:"url"`
Citation []string `xml:"zitation"`
Akteur []AgentRef `xml:"akteur"`
Identifier
AnnotationNote
}
type AgentRef struct {
Ref string `xml:"ref,attr"`
Category string `xml:"Kat,attr"`
Value string `xml:",chardata"`
}
type URL struct {
Address string `xml:"address,attr"`
Value string `xml:",chardata"`
}
func (w Works) Append(data Works) Works {
w.Work = append(w.Work, data.Work...)
return w