首次提交:初始化项目代码

This commit is contained in:
sunct
2026-07-31 15:18:32 +08:00
commit d6393266b0
193 changed files with 14287 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package main
import (
"flag"
"fmt"
)
func main() {
port := flag.Int("port", 8080, "服务端口")
flag.Parse()
// 获取无标记位置参数
args := flag.Args()
if len(args) == 0 {
fmt.Println("请传入配置文件路径")
return
}
fmt.Printf("端口:%d,配置文件:%s\n", *port, args[0])
}