#golang tip: It's commonly known that you can cast between types that have the same underlying type, e.g. you can cast "type MyInt int" to an int. Less-known is that you can do the same with *pointers*, like so:
someFunction((*int)(&myInt))
No unsafe package needed!
12:07 PM - 12 Dec 2018
0 replies
2 retweets
0 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.