Skip to content

Commit

Permalink
Make Version variable to allow injecting using linker flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Sep 6, 2016
1 parent 94542f7 commit 44fda51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

// VERSION is what is returned by the `-v` flag
const Version = "development"
var Version = "development"

func main() {
version := flag.Bool("version", false, "Prints current app version")
Expand Down

0 comments on commit 44fda51

Please sign in to comment.