mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-10-31 01:55:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			403 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			403 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package xmlmodels
 | |
| 
 | |
| import (
 | |
| 	"encoding/json"
 | |
| 	"encoding/xml"
 | |
| )
 | |
| 
 | |
| type Place struct {
 | |
| 	XMLName  xml.Name `xml:"ort"`
 | |
| 	Names    []string `xml:"name"`
 | |
| 	SortName string   `xml:"sortiername"`
 | |
| 	Geo      string   `xml:"geonames"`
 | |
| 	Identifier
 | |
| 	AnnotationNote
 | |
| }
 | |
| 
 | |
| func (p Place) Name() string {
 | |
| 	return "place"
 | |
| }
 | |
| 
 | |
| func (p Place) String() string {
 | |
| 	data, _ := json.MarshalIndent(p, "", "  ")
 | |
| 	return string(data)
 | |
| }
 | 
