gohttpserver/internal/globals/globals.go
sneak 75442d261d
Some checks failed
continuous-integration/drone/push Build is failing
this is nowhere near working yet
2022-11-28 04:59:20 +01:00

28 lines
410 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
Buildarch string
)
type Globals struct {
Appname string
Version string
Buildarch string
}
func New(lc fx.Lifecycle) (*Globals, error) {
n := &Globals{
Appname: Appname,
Buildarch: Buildarch,
Version: Version,
}
return n, nil
}