diff options
Diffstat (limited to 'pkg/config/main.go')
-rw-r--r-- | pkg/config/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/config/main.go b/pkg/config/main.go index 142738d..cfa97ed 100644 --- a/pkg/config/main.go +++ b/pkg/config/main.go @@ -19,6 +19,8 @@ type Opts struct { Auth string } +// TODO -- remove use of reflect + func (o *Opts) fallbackToEnv(field string, envVar string, defaultVal string) { r := reflect.ValueOf(o) f := reflect.Indirect(r).FieldByName(field) |