mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-11-03 19:35:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			523 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			523 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package xmlprovider
 | 
						|
 | 
						|
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)
 | 
						|
}
 |