What is a defer statement in Go? When would you use it?What is a defer statement in Go? When would you use it?
In Go, a defer statement is used to schedule a function call to be executed immediately before the surrounding function or block returns. The defer statement is typically used to