Go has a concise keyword, called defer, which is used to ensure that the function is called later during program execution, and is usually used for cleaning up. Suppose we want to create a file, write data, and then close it when finished: package main import "...