mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-08-02 21:02:15 +02:00
initial import
This commit is contained in:
16
golang-language-samples/defer/defer.go
Normal file
16
golang-language-samples/defer/defer.go
Normal file
@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func sagA() {
|
||||
fmt.Println("A")
|
||||
}
|
||||
|
||||
func sagB() {
|
||||
fmt.Println("B")
|
||||
}
|
||||
|
||||
func main() {
|
||||
defer sagA()
|
||||
sagB()
|
||||
}
|
Reference in New Issue
Block a user