Compare commits
No commits in common. "3a6cbc0ea516460362d612d9548821da12846ff8" and "7e7c46dc4cc6170a3b7cc3971a9c5393c299c1e3" have entirely different histories.
3a6cbc0ea5
...
7e7c46dc4c
2 changed files with 3 additions and 13 deletions
|
@ -1,16 +1,7 @@
|
|||
package metadata
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
import "strings"
|
||||
|
||||
func getVersion() string {
|
||||
content, _ := os.ReadFile("version.txt")
|
||||
version := strings.TrimSpace(string(content))
|
||||
|
||||
return version
|
||||
}
|
||||
|
||||
var GoTomatoVersion = getVersion() // The GoTomato version
|
||||
// This will be overwritten by goreleaser on build
|
||||
var GoTomatoVersion = "devel" // The GoTomato version
|
||||
var ProtocolVersion = strings.Split(GoTomatoVersion, ".")[0] // The protocol version
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
0.3.0
|
Loading…
Reference in a new issue