Skip to content

Commit 5cd8ba4

Browse files
committed
version handling
1 parent 09f65f4 commit 5cd8ba4

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

version.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package main
2+
3+
import (
4+
_ "embed"
5+
"strings"
6+
)
7+
8+
var (
9+
//go:embed version.txt
10+
version string
11+
Version string = strings.TrimSpace(version)
12+
)

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.0

0 commit comments

Comments
 (0)