Created
March 26, 2019 05:37
-
-
Save abhirockzz/cdf112e81d7fae24c9ccea6a2341451f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defer func() { | |
fileErr := os.Remove(outputLocation) | |
if fileErr == nil { | |
log.Println("Deleted temp file", outputLocation) | |
} else { | |
log.Println("Error removing output file", fileErr.Error()) | |
} | |
}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment