#golang tip: retaining a pointer to *any* part of a slice prevents the whole array from being GC'd (even if you change the capacity, e.g. s = s[:5:5]).
Similarly (and less widely known), retaining a pointer to *any* field in a struct prevents the entire struct from being GC'd.
10:59 AM - 17 Jul 2018
0 replies
3 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.