ng icon indicating copy to clipboard operation
ng copied to clipboard

provide a ngfmt command like gofmt

Open sbinet opened this issue 7 years ago • 2 comments

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

sbinet avatar Nov 12 '17 14:11 sbinet

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.

crawshaw avatar Nov 13 '17 14:11 crawshaw

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

mvdan avatar Nov 18 '17 16:11 mvdan