2024-09-27 20:25:12 -04:00
|
|
|
package agecemorg
|
2023-11-13 16:49:20 -05:00
|
|
|
|
|
|
|
// Filled by build flag
|
|
|
|
var version string
|
|
|
|
|
|
|
|
/*
|
|
|
|
Version returns the application version
|
|
|
|
|
|
|
|
Example command to use the output of `git describe` for version number at build time:
|
|
|
|
|
2024-09-27 20:25:12 -04:00
|
|
|
$ go build -ldflags="-X 'git.agecem.com/agecem/agecem-org/pkg/agecemorg/version.version=`git describe`'" .
|
2023-11-13 16:49:20 -05:00
|
|
|
*/
|
|
|
|
func Version() string {
|
|
|
|
if version == "" {
|
|
|
|
return "version unknown"
|
|
|
|
}
|
|
|
|
|
|
|
|
return version
|
|
|
|
}
|