add app config and logging interface

This commit is contained in:
Alex Goodman
2020-05-21 15:25:59 -04:00
parent 9676f99b86
commit 3e71315195
16 changed files with 607 additions and 64 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ const (
AllLayersScope
)
type Option int
type Option uint
var optionStr = []string{
"UnknownScope",
@@ -32,7 +32,7 @@ func ParseOption(userStr string) Option {
}
func (o Option) String() string {
if int(o) >= len(optionStr) || int(o) < 0 {
if int(o) >= len(optionStr) {
return optionStr[0]
}