fix: the version number contains a line break

This commit is contained in:
withchao 2025-04-01 16:38:59 +08:00
parent 6b5d128fd9
commit 81493f843e

View File

@ -1,6 +1,14 @@
package version package version
import _ "embed" import (
_ "embed"
"strings"
)
//go:embed version //go:embed version
var Version string var Version string
func init() {
Version = strings.Trim(Version, "\n")
Version = strings.TrimSpace(Version)
}