Tag go

 Bookmark

I've recently been doing similar with some of my utilities, albeit with an informal comparison between Ruby and Go versions, but would agree that for large, production critical scrips, this is a great way to do it

Recommended read: Rewriting Bash scripts in Go using black box testing https://stackoverflow.blog/2022/03/09/rewriting-bash-scripts-in-go-using-black-box-testing/

 Note

Does anyone in the #Go community know if go:embed is meant to work when using go install? I've got a repo that doesn't appear to embed the template when go installing it with go version go1.17.6 linux/amd64, only when go building it

Edit: looks like it's solved itself, and it does work, woops!