# Functions
CloseOnExec makes sure closing the file on process forking.
TempFilenameWithText creates the file with the given content, and returns the filename (full path).
TempFileWithText creates the temporary file with the given content, and returns the opened *os.File instance.