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.48k stars 473 forks source link

add final newline #128

Closed grische closed 1 month ago

grische commented 1 month 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.