|
|
@@ -11,17 +11,17 @@ package main
|
|
|
import "fmt"
|
|
|
|
|
|
func main() {
|
|
|
- Function1()
|
|
|
+ function1()
|
|
|
}
|
|
|
|
|
|
-func Function1() {
|
|
|
- fmt.Printf("In Function1 at the top\n")
|
|
|
- defer Function2()
|
|
|
- fmt.Printf("In Function1 at the bottom!\n")
|
|
|
+func function1() {
|
|
|
+ fmt.Printf("In function1 at the top\n")
|
|
|
+ defer function2()
|
|
|
+ fmt.Printf("In function1 at the bottom!\n")
|
|
|
}
|
|
|
|
|
|
-func Function2() {
|
|
|
- fmt.Printf("Function2: Deferred until the end of the calling function!")
|
|
|
+func function2() {
|
|
|
+ fmt.Printf("function2: Deferred until the end of the calling function!")
|
|
|
}
|
|
|
```
|
|
|
|