TrueBlocks / trueblocks-core

The main repository for the TrueBlocks system
https://trueblocks.io
GNU General Public License v3.0
1.05k stars 198 forks source link

Why do we use PointerOf? #3766

Closed tjayrush closed 3 months ago

tjayrush commented 3 months ago

I'm just curious. Not sure what it's doing.

dszlachta commented 3 months ago

We used it pretty much only in tests. It makes it easier to get a pointer to anonymous values, like:

ptr := utils.PointerOf("hello")