Исходники и презентации
This commit is contained in:
12
lessons/functions/defer_evaluation_moment/main.go
Normal file
12
lessons/functions/defer_evaluation_moment/main.go
Normal file
@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
var f func()
|
||||
defer f()
|
||||
|
||||
f = func() {
|
||||
fmt.Println(true)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user