version

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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