8 lines
152 B
Go
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)
|
|
}
|