Some checks failed
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline failed
ci/woodpecker/push/fees Pipeline failed
ci/woodpecker/push/fx/1 Pipeline failed
ci/woodpecker/push/fx/2 Pipeline failed
ci/woodpecker/push/nats Pipeline was successful
28 lines
507 B
Go
Executable File
28 lines
507 B
Go
Executable File
package appversion
|
|
|
|
import (
|
|
"github.com/tech/sendico/pkg/version"
|
|
vf "github.com/tech/sendico/pkg/version/factory"
|
|
)
|
|
|
|
// Build information. Populated at build-time.
|
|
var (
|
|
Version string
|
|
Revision string
|
|
Branch string
|
|
BuildUser string
|
|
BuildDate string
|
|
)
|
|
|
|
func Create() version.Printer {
|
|
vi := version.Info{
|
|
Program: "Sendico Notification Service",
|
|
Revision: Revision,
|
|
Branch: Branch,
|
|
BuildUser: BuildUser,
|
|
BuildDate: BuildDate,
|
|
Version: Version,
|
|
}
|
|
return vf.Create(&vi)
|
|
}
|