Go is a fine language, but not great for scripting. The verbosity shows in the examples, it’s basically skipping five or six lines of code to read from stdin and import a functional library.
Learning the jq syntax will have a much better payoff in the long run.
Learning the jq syntax will have a much better payoff in the long run.