3 ms·
In Go, strings are internally a header that contains a length and a pointer. The bytes of the string itself are heap allocated.
by echlebek 9y ago
In Go, strings are internally a header that contains a length and a pointer. The bytes of the string itself are heap allocated.