Skip to content

Instantly share code, notes, and snippets.

@sohlich
Created March 12, 2018 05:54
Show Gist options
  • Save sohlich/8def0de330029c2e36b80601c10bfc98 to your computer and use it in GitHub Desktop.
Save sohlich/8def0de330029c2e36b80601c10bfc98 to your computer and use it in GitHub Desktop.
executing command line cmds
cmd := "cat " + val.Name() + " | jq ."
out, err := exec.Command("bash", "-c", cmd).Output()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment