March 2019
Intermediate to advanced
336 pages
9h 9m
English
The Find method takes the key parameter of the DictKey type and returns the DictVal type associated with the key. The following code snippet explains the Find method:
// Find methodfunc (dict *Dictionary) Find(key DictKey) DictVal { dict.lock.RLock() defer dict.lock.RUnlock() return dict.elements[key]}
Read now
Unlock full access