samuel / go-thrift

A native Thrift package for Go
BSD 3-Clause "New" or "Revised" License
384 stars 110 forks source link

struct & const fixes #89

Open brandonbloom opened 8 years ago

brandonbloom commented 8 years ago

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.