修改代码注释为中文

This commit is contained in:
zyj
2026-03-04 14:10:30 +08:00
parent 89d64cb117
commit 2cb4e1a87b
16 changed files with 1031 additions and 69 deletions

View File

@@ -5,19 +5,19 @@ import (
"runtime"
)
// These variables are set at build time via ldflags.
// 以下变量在构建时通过 ldflags 注入
var (
Version = "dev"
Commit = "unknown"
Date = "unknown"
)
// GetVersionString returns a short version string.
// GetVersionString 返回简短的版本号字符串
func GetVersionString() string {
return Version
}
// GetFullVersionInfo returns complete version information.
// GetFullVersionInfo 返回完整的版本信息
func GetFullVersionInfo() string {
return fmt.Sprintf(
"DevPack %s\n Commit: %s\n Built: %s\n Go: %s\n OS/Arch: %s/%s",