UNB/ CS/ David Bremner/ teaching/ cs2613/ books/ gobyexample/ examples/ defer/ defer.sh
# Running the program confirms that the file is closed
# after being written.
$ go run defer.go
creating
writing
closing