Created
May 23, 2019 11:32
-
-
Save thekostya/45d32bd75d6f814a0078ec3bd5a66624 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
deferExample() | |
fmt.Println("Returned from deferExample.") | |
} | |
func deferExample() { | |
defer fmt.Println("Deferred log.") | |
fmt.Println("Print line.") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment