I'd suggest you write a script/Go program to parse and generate the progrom for this problem
and let the computer do the hard work; there is not better approaches other than to make an
array of the strings and slightly shorten the String() method.
for example, the syscall package uses a perl script driven by
mkall.sh to generate all kinds of
constants and even Go syscall interface functions directly from system (or even kernel source)
headers.