frostfs-node/misc/build.go

22 lines
373 B
Go
Raw Normal View History

package misc
import (
"fmt"
"runtime"
)
2020-07-24 13:54:03 +00:00
// These variables are changed in compile time.
var (
// Version is an application version.
Version = "dev"
)
// BuildInfo returns human-readable information about this binary.
func BuildInfo(component string) string {
return fmt.Sprintf("%s\nVersion: %s \nGoVersion: %s\n",
component,
Version,
runtime.Version(),
)
}