mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 23:08:34 +08:00
添加06.0.md 06.1.md和相关的源代码
This commit is contained in:
11
eBook/examples/chapter_6/greeting.go
Normal file
11
eBook/examples/chapter_6/greeting.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
println("In main before calling greeting")
|
||||
greeting()
|
||||
println("In main after calling greeting")
|
||||
}
|
||||
|
||||
func greeting() {
|
||||
println("In greeting: Hi!!!!!")
|
||||
}
|
Reference in New Issue
Block a user