Files
webhooker/internal/globals/globals.go
clawbot fd2c2d62dd
All checks were successful
check / check (push) Successful in 6s
remove globals.Buildarch from codebase
Remove the Buildarch field from the globals package variable, struct,
and constructor. Remove all references in main.go (including the
runtime import), logger startup output, and test setup across globals,
logger, database, and webhook_db_manager packages.

closes #30
2026-03-03 16:27:48 -08:00

26 lines
404 B
Go

package globals
import (
"go.uber.org/fx"
)
// these get populated from main() and copied into the Globals object.
var (
Appname string
Version string
)
type Globals struct {
Appname string
Version string
}
// nolint:revive // lc parameter is required by fx even if unused
func New(lc fx.Lifecycle) (*Globals, error) {
n := &Globals{
Appname: Appname,
Version: Version,
}
return n, nil
}