Re:Understand Go pointers
by echlebek on Wednesday April 26, 2017 @09:25PM
(#14208477)
In Go, strings are internally a header that contains a length and a pointer. The bytes of the string itself are heap allocated.
[ Parent
| on HN ]
There are no comments on this comment yet.