Skip to content

Commit

Permalink
fix: trim newline from version
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed May 8, 2021
1 parent 0c871d8 commit a565008
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion version.go
Expand Up @@ -3,10 +3,13 @@ package gonic

import (
_ "embed"
"fmt"
"strings"
)

//go:embed version.txt
var Version string
var version string
var Version = fmt.Sprintf("v%s", strings.TrimSuffix(version, "\n"))

const Name = "gonic"
const NameUpper = "GONIC"
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
0.12.2
0.12.3

0 comments on commit a565008

Please sign in to comment.