go-tour/defer.go

10 lines
101 B
Go
Raw Normal View History

2020-02-05 03:44:36 +00:00
package main
import "fmt"
func main() {
defer fmt.Println("world")
fmt.Println("hello")
}