// Package globals provides application-wide constants set at build time. package globals import ( "go.uber.org/fx" ) const appname = "pixad" // Version is populated from main() via ldflags. var Version string //nolint:gochecknoglobals // set from main // Globals holds application-wide constants. type Globals struct { Appname string Version string } // New creates a new Globals instance from build-time variables. func New(_ fx.Lifecycle) (*Globals, error) { return &Globals{ Appname: appname, Version: Version, }, nil }