feat(*): go 后端项目脚手架

This commit is contained in:
2025-11-15 18:20:30 +08:00
commit 5bb025c1aa
39 changed files with 2459 additions and 0 deletions

29
pkg/consts/consts.go Normal file
View File

@@ -0,0 +1,29 @@
package consts
import (
"fmt"
)
// 通用系统级常量
const (
AppName = "NavSite"
AppAuthor = "zhilv666"
AppVersion = "1.0.0"
)
// 默认服务端口
const DefaultPort = 8080
// 通用时间格式
const (
TimeFormatDate = "2006-01-02"
TimeFormatDateTime = "2006-01-02 15:04:05"
)
func init() {
fmt.Printf("🚀 启动 %s v%s by %s\n",
AppName,
AppVersion,
AppAuthor,
)
}