I wonder why this hasn't been implemented in the standard library yet. People have been doing this for at least 3 years, and the benefits Cheney listed are real.
Another Go constant feature I would love is pure function compile time initialization. It will never happen, but I can dream.
Another Go constant feature I would love is pure function compile time initialization. It will never happen, but I can dream.