Mark McGranaghan 434392e67c index work
2012-09-23 14:54:59 -07:00

12 lines
241 B
Bash

# If you run `exit.go` using `go run`, the exit
# will be picked up by `go` and printed.
$ 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