包内函数使用
This commit is contained in:
parent
b1f0de613b
commit
6b961ce217
@ -4,6 +4,7 @@ import "fmt"
|
||||
|
||||
// 首字母大写的函数才能被外部包访问
|
||||
func Greet(name string) {
|
||||
internalFunc()
|
||||
fmt.Printf("Hello, %s!\n", name)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user