mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-28 16:45:32 +00:00
22 lines
521 B
Go
22 lines
521 B
Go
package xmlmodels
|
|
|
|
import (
|
|
"encoding/xml"
|
|
"fmt"
|
|
)
|
|
|
|
type Agent struct {
|
|
XMLName xml.Name `xml:"akteur"`
|
|
Names []string `xml:"name"`
|
|
SortName string `xml:"sortiername"`
|
|
Life string `xml:"lebensdaten"`
|
|
GND string `xml:"gnd"`
|
|
Org bool `xml:"org,attr"`
|
|
Identifier
|
|
AnnotationNote
|
|
}
|
|
|
|
func (a Agent) String() string {
|
|
return fmt.Sprintf("ID: %s\nNames: %v\nSortName: %s\nLife: %s\nGND: %s\nAnnotations: %v\nNotes: %v\n", a.ID, a.Names, a.SortName, a.Life, a.GND, a.Annotations, a.Notes)
|
|
}
|