mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
24 lines
385 B
Go
24 lines
385 B
Go
package xmlmodels
|
|
|
|
import (
|
|
"encoding/json"
|
|
"encoding/xml"
|
|
)
|
|
|
|
type Category struct {
|
|
XMLName xml.Name `xml:"kategorie"`
|
|
Names []string `xml:"name"`
|
|
SortName string `xml:"sortiername"`
|
|
Identifier
|
|
AnnotationNote
|
|
}
|
|
|
|
func (c Category) Name() string {
|
|
return "category"
|
|
}
|
|
|
|
func (c Category) String() string {
|
|
data, _ := json.MarshalIndent(c, "", " ")
|
|
return string(data)
|
|
}
|