go: Get rid of goto in parseConstTypeVar()

Thanks to Colomban Wendling for various improvements.