初始化

This commit is contained in:
2025-04-08 17:01:19 +08:00
commit 4228f447f7
75 changed files with 574 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package myutils
import "fmt"
// 首字母大写的函数才能被外部包访问
func Greet(name string) {
fmt.Printf("Hello, %s!\n", name)
}
// 小写函数只能在包内使用
func internalFunc() {
fmt.Println("This is internal")
}