mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-11-04 15:46:17 +01: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