Add runtime version reporting
This commit is contained in:
12
buildinfo/version.go
Normal file
12
buildinfo/version.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Package buildinfo provides runtime version information for applications
|
||||
// built with ReleaseKit.
|
||||
package buildinfo
|
||||
|
||||
import "gitea.maximumdirect.net/eric/ReleaseKit/internal/runtimeinfo"
|
||||
|
||||
// Version returns the injected release identifier when available. Otherwise,
|
||||
// it returns the executable's main module version, or "dev" when that metadata
|
||||
// is unavailable or identifies a development build.
|
||||
func Version() string {
|
||||
return runtimeinfo.Version()
|
||||
}
|
||||
Reference in New Issue
Block a user