Quick actions

cmd+k|ctrl+k

Navigation

Languages

Defer / Defer pitfalls / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-03-26T10:14:51Z

Updated

2019-03-26T10:14:51Z

package main

import "fmt"

func main() {
	fmt.Print("Before if\n")
	if true {
		defer fmt.Print("inside if\n")
	}

	fmt.Print("Ater if\n")
}
INFO