THRIFT-2419 golang - Fix fmt.Errorf in generated code

Patch: Chris Bannister