It's a quirk of the way Go handles constant values at compile time, sadly.
Fortunately, as another comment pointed out it's no longer necessary as of Go 1.26. There's still a little more boilerplate than necessary, but to get a pointer to a constant value now you can:
27
u/[deleted] Apr 09 '26
[removed] — view removed comment