this is nowhere near working yet
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-11-28 04:59:20 +01:00
parent 0c3797ec30
commit 75442d261d
19 changed files with 567 additions and 308 deletions

View File

@@ -0,0 +1,27 @@
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
}