March 2019
Intermediate to advanced
336 pages
9h 9m
English
The dictionary in the following code is a class with dictionary elements, with DictKey as the key and DictVal as the value. It has a sync.RWMutex property, lock:
// Dictionary classtype Dictionary struct { elements map[DictKey]DictVal lock sync.RWMutex}
The Put, Remove, Contain, Find, Rest, NumberofElements, GetKeys, GetValues, and Main methods are discussed in the following sections.
Read now
Unlock full access