vburenin / ifacemaker

Generate interfaces from structure methods.
Apache License 2.0
320 stars 43 forks source link

Extra newline at the end of the file #5

Closed nkovacs closed 7 years ago

nkovacs commented 7 years ago

ifacemaker appends an extra newline at the end of the file: https://github.com/vburenin/ifacemaker/blob/master/ifacemaker.go#L39

gofmt doesn't like this newline, and will remove it.

Why is this newline added to the result? FormatCode should format the code properly.

vburenin commented 7 years ago

I do not remember exactly, it was a two hours project that I desperately needed for testing purposes. It could be for esthetic purposes or just a leftover. anyway, thanks for contribution!