6
0
mirror of https://git.mills.io/prologic/msgbus.git synced 2024-06-29 18:21:44 +00:00
prologic-msgbus/version.go

22 lines
412 B
Go
Raw Normal View History

2018-03-25 21:37:32 +00:00
package msgbus
import (
"fmt"
)
var (
// Version release version
Version = "0.1.0"
// Build will be overwritten automatically by the build system
Build = "dev"
// GitCommit will be overwritten automatically by the build system
GitCommit = "HEAD"
)
2018-03-25 21:50:02 +00:00
// FullVersion returns the full version, build and commit hash
2018-03-25 21:37:32 +00:00
func FullVersion() string {
2018-03-25 21:50:02 +00:00
return fmt.Sprintf("%s-%s@%s", Version, Build, GitCommit)
2018-03-25 21:37:32 +00:00
}