by jbotz · 6y ago · 0 comments
However, there are quite a few typos in the examples... even the very first one is missing a quote and won't parse if cut-and-pasted as is.
I do my scripting mostly in Go now and it's much easier to structure my code and grow it over time. I sometimes use Python, but Go is more flexible for what I do. I can compile an exe and drop it onto a host and run it, without worrying about VM and library versioning (or in Bash's case, making sure jq is installed and all the Unix utils have compatible versions).
I don't know what you mean by "memory-management-free" though, Go is still a garbage collected language.
Also I recently learned Go's CLI parser is pretty weak compared to argparse.
(bash doesn't care about errors either, by the way.)