MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / Remove

Method Remove

internal/users/charindex.go:37–41  ·  view source on GitHub ↗

Remove deletes the entry for name from the index. It is a no-op if the name is not present.

(name string)

Source from the content-addressed store, hash-verified

35// Remove deletes the entry for name from the index. It is a no-op if the
36// name is not present.
37func (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.
44func (ci *CharacterIndex) Len() int {

Callers 13

DeleteMethod · 0.45
writeCompleteIndexMethod · 0.45
DeleteUserFunction · 0.45
benchTempFileFunction · 0.45
TestSearchIndexByUserIdFunction · 0.45
TestAppendUserRecordFunction · 0.45

Calls 3

deleteFunction · 0.85
LockMethod · 0.80
UnlockMethod · 0.80