Added reset of Reverse Reference Rersolver on reparse

This commit is contained in:
Simon Martens
2025-01-08 03:51:38 +01:00
parent 2fa66f90e5
commit aaf5e8241a
3 changed files with 40 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
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]
}