From 81493f843e70919f05b1f0f09cb337018948cdde Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Tue, 1 Apr 2025 16:38:59 +0800 Subject: [PATCH] fix: the version number contains a line break --- version/version.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/version/version.go b/version/version.go index 23b3a82f5..32ad27808 100644 --- a/version/version.go +++ b/version/version.go @@ -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) +}