neugram / ng

scripting language integrated with Go
https://neugram.io
BSD 2-Clause "Simplified" License
916 stars 43 forks source link

provide a ngfmt command like gofmt #81

Open sbinet opened 6 years ago

sbinet commented 6 years ago

we should probably have the equivalent of gofmt for ng scripts. (ngfmt ?)

crawshaw commented 6 years ago

Yes, we need a printer package. My hope is the format package can do a big chunk of the work. One of the big missing pieces is having the parser record comments in the AST.

mvdan commented 6 years ago

You could even format the shell code, if that would be useful: https://godoc.org/mvdan.cc/sh/syntax#Printer