2 ms·
This is true. In the case of REST, it is your “encoding/json” who will allocate for int pointer. So I do not see why new() is needed.
by bilinguliar 4y ago
This is true. In the case of REST, it is your “encoding/json” who will allocate for int pointer. So I do not see why new() is needed.