go-thrift icon indicating copy to clipboard operation
go-thrift copied to clipboard

struct & const fixes

Open brandonbloom opened this issue 9 years ago • 0 comments

I was getting some output that looked like

const Foo = *Bar{
  Baz: 1,
}

The first commit fixes const to var and the second commit removes the *. Resulting in the correct output:

var Foo = Bar{
  Baz: 1,
}

The second commit seems to have some cascading impact to struct fields, fixing cases where there were double-optionals, like pointers to slices.

brandonbloom avatar Jan 12 '16 23:01 brandonbloom