Skip to content

Commit

Permalink
Update version.go
Browse files Browse the repository at this point in the history
  • Loading branch information
wandercn committed Jul 6, 2021
1 parent ef95d58 commit 5b03e9c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
package main

const (
goVersion = "1.16.5"
hotbuildVersion = "v1.0.3"
import (
"log"
"os"
)

var goVersion = "1.16.5"
var Version = ""

func init() {
if Version == "" {
v, err := os.ReadFile("./version.txt")
if err != nil {
log.Printf("read ./version.txt failed: %v", err)
return
}
Version = string(v)
}
}

0 comments on commit 5b03e9c

Please sign in to comment.