gobstore/count.go
2025-01-12 02:51:51 -07:00

8 lines
152 B
Go

package gobstore
// Count returns the length of the dictionary
func (j *GobStore[T]) Count() int {
j.Lock()
defer j.Unlock()
return len(j.values)
}