B and A function worked defer statement
This commit is contained in:
parent
6e181a1024
commit
91ed99722f
13
defer_statement/demo1.go
Normal file
13
defer_statement/demo1.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package defer_statement
|
||||
|
||||
import "fmt"
|
||||
|
||||
func A() {
|
||||
fmt.Println("A function worked")
|
||||
}
|
||||
|
||||
func B() {
|
||||
fmt.Println("B function worked")
|
||||
A()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user