mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 17:15:31 +00:00
Reworked init method of KGPZ
This commit is contained in:
@@ -8,8 +8,9 @@ import (
|
||||
)
|
||||
|
||||
type Resolver[T XMLItem] struct {
|
||||
index map[string]map[string][]Resolved[T] // Map[typeName][refID] -> []*T
|
||||
mu sync.RWMutex // Synchronization for thread safety
|
||||
// INFO: map[type][ID]
|
||||
index map[string]map[string][]Resolved[T]
|
||||
mu sync.RWMutex
|
||||
}
|
||||
|
||||
func NewResolver[T XMLItem]() *Resolver[T] {
|
||||
|
||||
Reference in New Issue
Block a user