What\'s the idiomatic way to exit a program with some error code?
The documentation for Exit says \"The program terminates immediately; deferred functions a
Exit
In python I commonly use pattern which converted to go looks like this:
func run() int { // here goes // the code return 1 } func main() { os.Exit(run()) }