6
0
mirror of https://git.mills.io/prologic/msgbus.git synced 2024-06-16 11:59:03 +00:00
prologic-msgbus/version.go

19 lines
313 B
Go
Raw Normal View History

2018-03-25 21:37:32 +00:00
package msgbus
import (
"fmt"
)
var (
// Version release version
2018-05-08 08:06:28 +00:00
Version = "0.1.1"
2018-03-25 21:37:32 +00:00
2022-03-20 16:28:47 +00:00
// Commit will be overwritten automatically by the build system
Commit = "HEAD"
2018-03-25 21:37:32 +00:00
)
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 {
2022-03-20 16:28:47 +00:00
return fmt.Sprintf("%s@%s", Version, Commit)
2018-03-25 21:37:32 +00:00
}