Defer keyword November 8, 2017May 11, 2019 WeiranLeave a comment Run the block of code before leaving the current scope. Similar to “finally” in other language’s try/catch block.