gobuch/golang-language-samples/defer/defer.go

17 lines
136 B
Go
Raw Permalink Normal View History

2020-08-21 04:26:40 +00:00
package main
import "fmt"
func sagA() {
fmt.Println("A")
}
func sagB() {
fmt.Println("B")
}
func main() {
defer sagA()
sagB()
}