Victor Lacasse-Beaudoin
7d4a747774
Déplacer public/ et templates/ vers ui/ et ui/public/ Bump projet à v3, API toujours v1
19 lines
398 B
Go
19 lines
398 B
Go
package agecemorg
|
|
|
|
// 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:
|
|
|
|
$ go build -ldflags="-X 'git.agecem.com/agecem/agecem-org/pkg/agecemorg/version.version=`git describe`'" .
|
|
*/
|
|
func Version() string {
|
|
if version == "" {
|
|
return "version unknown"
|
|
}
|
|
|
|
return version
|
|
}
|