mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-11-03 19:35:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			224 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			224 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package xmlprovider
 | 
						|
 | 
						|
import "sync"
 | 
						|
 | 
						|
type Library struct {
 | 
						|
	pmux   sync.Mutex
 | 
						|
	Parses []ParseMeta
 | 
						|
}
 | 
						|
 | 
						|
func (l *Library) Latest() ParseMeta {
 | 
						|
	if len(l.Parses) == 0 {
 | 
						|
		return ParseMeta{}
 | 
						|
	}
 | 
						|
	return l.Parses[len(l.Parses)-1]
 | 
						|
}
 |