diff options
| -rw-r--r-- | flags.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,14 @@ package config +// returns true if config is working okay +func InitValid() bool { + if configPB == nil { + // todo: try to re-init it here + return false + } + return true +} + func Get(flag string) string { if configPB == nil { return "" |
