mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:08:53 +08:00
add 04.4.md translate for ch 4.4
This commit is contained in:
15
eBook/examples/chapter_4/function_calls_function.go
Normal file
15
eBook/examples/chapter_4/function_calls_function.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
var a string
|
||||
func main() {
|
||||
a = "G"
|
||||
print(a)
|
||||
f1()
|
||||
}
|
||||
func f1() {
|
||||
a := "O"
|
||||
print(a)
|
||||
f2()
|
||||
}
|
||||
func f2() {
|
||||
print(a)
|
||||
}
|
Reference in New Issue
Block a user