Re:Shfmt – format shell programs (like gofmt, rustfmt)
by akshayshah on Saturday February 11, 2023 @11:15PM
(#34759660)
At a previous job, my team slowly built an absolutely unmanageable bash script (hundreds of lines, including _many_ complex, multi-line jq incantations). The first step in migrating that script to go was to embed it in a Go binary and run it with gosh.
Kudos to Daniel for building such a wonderful package.
This means anywhere golang is installed, including aarch64 Darwin and Windows you can:
Or things like Pretty awesome stuff, I'm always discovering new ways to use it.