mholt / json-to-go

Translates JSON into a Go type in your browser instantly (original)
https://mholt.github.io/json-to-go/
MIT License
4.51k stars 475 forks source link

add final newline #128

Closed grische closed 4 months ago

grische commented 4 months ago

Adding a final newline for POSIX 3.206 to the return value of jsonToGo. Also replace console.log with stdout.write to avoid creating multiple newlines.

This makes it easier to use the output to generate files.