7 lines
121 B
Bash
7 lines
121 B
Bash
# Running the program confirms that the file is closed
|
|
# after being written.
|
|
$ go run defer.go
|
|
creating
|
|
writing
|
|
closing
|