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

10 lines
180 B
Go

package gobstore
// Delete removes a key if it exists
func (j *GobStore[T]) Delete(key string) {
j.Lock()
defer j.Unlock()
j.dirty = true
delete(j.values, key)
// j.save()
}