fix: the version number contains a line break

This commit is contained in:
withchao 2025-04-01 16:43:40 +08:00
parent 3b710fdfdb
commit fb7b203dfd

View File

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