Skip to content

Commit

Permalink
fix: version (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu authored Oct 24, 2024
1 parent e9bad3d commit 005ef6b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 005ef6b

Please sign in to comment.