Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
defer as introduced in the Tour of Go
package main
import "fmt"
func main() {
defer fmt.Println("world")
fmt.Println("hello")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment