Remove deletes the entry for name from the index. It is a no-op if the name is not present.
(name string)
| 35 | // Remove deletes the entry for name from the index. It is a no-op if the |
| 36 | // name is not present. |
| 37 | func (ci *CharacterIndex) Remove(name string) { |
| 38 | ci.mu.Lock() |
| 39 | defer ci.mu.Unlock() |
| 40 | delete(ci.byName, strings.ToLower(name)) |
| 41 | } |
| 42 | |
| 43 | // Len returns the number of character names currently in the index. |
| 44 | func (ci *CharacterIndex) Len() int { |