version

package
v0.1.84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppCore = "GoModel"
	AppPro  = "GoModel Pro"
)

Distribution names carried in the X-GoModel-App header and used to pick which version manifest an update check reads.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

These variables are set via -ldflags during the build process. When ldflags are absent (e.g. go install), init fills them from the embedded module build info instead.

View Source
var App = AppCore

App names the running distribution. Custom builds set it through run.Options.AppName (or -ldflags) before the gateway starts; the open core leaves it at AppCore.

Functions

func Channel added in v0.1.83

func Channel() string

Channel is the manifest basename for the running distribution.

func ChannelFor added in v0.1.83

func ChannelFor(app string) string

ChannelFor is the manifest basename for a distribution name: "pro" for GoModel Pro, "core" for everything else. It is the single place that rule lives, so the update check and the version banner can never disagree.

func Info

func Info() string

Info returns a formatted version string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL