gobstore/all.go

9 lines
138 B
Go
Raw Normal View History

2025-01-12 09:51:51 +00:00
package gobstore
// All returns the entire map
func (j *GobStore[T]) All() map[string]T {
j.Lock()
defer j.Unlock()
return j.values
}