diff options
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +package ENV + +// this is an experiment at this point to +// see how this turns out + +func Init(appname, version, buildtime string, fromargv []string) error { + APPNAME = appname + VERSION = version + BUILDTIME = buildtime + argv = fromargv + + err := loadENV() + if err == nil { + envPB.Init = true + } + return err +} + +func InitValid() bool { + if envPB == nil { + // todo: track that the application did not init + envPB = NewKeys() + return false + } + return envPB.Init +} |
