Files
lenz-web/xmlparsing/library.go
Simon Martens 9563145aeb Lots of stuff
2025-06-24 18:20:06 +02:00

16 lines
223 B
Go

package xmlparsing
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]
}