1
1
Fork 0
mirror of https://github.com/adammck/terraform-inventory synced 2024-05-11 13:46:20 +02:00
terraform-inventory/version.go
2015-02-09 16:37:43 -05:00

16 lines
404 B
Go

package main
// Deliberately uninitialized. See below.
var build_version string
// versionInfo returns a string containing the version information of the
// current build. It's empty by default, but can be included as part of the
// build process by setting the main.build_version variable.
func versionInfo() string {
if build_version != "" {
return build_version
} else {
return "unknown"
}
}