mirror of
https://github.com/adammck/terraform-inventory
synced 2024-11-22 20:01:58 +01:00
16 lines
404 B
Go
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"
|
|
}
|
|
}
|