March 2019
Intermediate to advanced
336 pages
9h 9m
English
The newReferenceCounter method initializes a ReferenceCounter instance and returns a pointer to ReferenceCounter. This is shown in the following code:
//new Reference Counter methodfunc newReferenceCounter() *ReferenceCounter { return &ReferenceCounter{ num: new(uint32), pool: &sync.Pool{}, removed: new(uint32), }}
The Stack class is described in the next section.
Read now
Unlock full access