6 ms·
As far as I'm aware Go doesn't return the exit status of a process the way Ruby and Python do. Surely this is a big disadvantage for CLI scripts?
by cutler 7y ago
As far as I'm aware Go doesn't return the exit status of a process the way Ruby and Python do. Surely this is a big disadvantage for CLI scripts?
- malvosenior 7y agoSure it does: https://gobyexample.com/exit https://gobyexample.com/exit If you mean Go can't read the exit status of a command it runs, that's incorrect as well: https://golang.org/pkg/os/exec/#pkg-overview https://golang.org/pkg/os/exec/#pkg-overview