Files
ReleaseKit/buildinfo/version.go

13 lines
458 B
Go

// 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()
}