If you run |
$ go run exit.go
exit status 3
|
By building and executing a binary you can see the status in the terminal. |
$ go build exit.go
$ ./exit
$ echo $?
3
|
Note that the |
Previous example: Signals.
Next example: HTTP Client.