gobstore/count.go

9 lines
152 B
Go
Raw Permalink Normal View History

2025-01-12 09:51:51 +00:00
package gobstore
// Count returns the length of the dictionary
func (j *GobStore[T]) Count() int {
j.Lock()
defer j.Unlock()
return len(j.values)
}