Skip to content

Commit

Permalink
fix: Show default version if ldflag not specified (cristianoliveira#81)
Browse files Browse the repository at this point in the history
* fix: Show default version if ldflag not specified
* fix: Add comment with version explanation

Fix cristianoliveira#78
  • Loading branch information
sadliak authored and cristianoliveira committed Oct 29, 2017
1 parent 7f971d0 commit 348bb13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import (
"github.com/cristianoliveira/ergo/proxy"
)

//VERSION of ergo.
var VERSION string
// VERSION of ergo
// When ergo is build without a proper tag/release it is named as `unofficial version`.
// For instance, installing through `go get github.com/cristianoliveira/ergo` or `go build`.
var VERSION = "unofficial version"

//USAGE details the usage for ergo proxy.
const USAGE = `
Expand Down

0 comments on commit 348bb13

Please sign in to comment.