Documentation
¶
Index ¶
Constants ¶
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 ¶
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.
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
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.
Types ¶
This section is empty.