Glossary: Algorithms Beyond the Basics in Go
defer
Also written: defer file.Close()
A Go keyword that runs a call when the surrounding function returns, however it returns. It is used to close files.
Glossary: Algorithms Beyond the Basics in Go
Also written: defer file.Close()
A Go keyword that runs a call when the surrounding function returns, however it returns. It is used to close files.