Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.3
-
Go 1.4.2
Thrift 0.9.3
Ubuntu Linux 14.04
amd64
Description
When Thrift 0.9.3 generates Go code for a service with a parameter that is of type set<typedeffed thing>, the generated Go code parameter is of type map[untypedeffed thing]bool. For example:
Thrift
namespace go bug typedef string Foo service FooService{ void bar (1:set<Foo> foos) }
Go
func (p *FooServiceClient) Bar(foos map[string]bool) (err error)
The key type of the Go map should be Foo, not string.