agecem-org/pkg/agecemorg/version.go
Victor Lacasse-Beaudoin 7d4a747774 refactor: déplacer fichiers go source vers pkg/ et cmd/
Déplacer public/ et templates/ vers ui/ et ui/public/

Bump projet à v3, API toujours v1
2024-09-27 20:25:12 -04:00

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
}