From 8604e4b72c12d264ae7baeefa53101542743693b Mon Sep 17 00:00:00 2001 From: xiangtieyao Date: Thu, 7 Jun 2018 00:58:31 +0800 Subject: [PATCH] Remove FlagLoader from DefaultLoader, because it's unusable, refer to: https://github.com/koding/multiconfig/issues/75 --- multiconfig.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/multiconfig.go b/multiconfig.go index 0070344..3fa5df2 100644 --- a/multiconfig.go +++ b/multiconfig.go @@ -52,9 +52,11 @@ func NewWithPath(path string) *DefaultLoader { } e := &EnvironmentLoader{} - f := &FlagLoader{} + // FlagLoader is unusable right now, refer to: https://github.com/koding/multiconfig/issues/75 + // f := &FlagLoader{} - loaders = append(loaders, e, f) + // loaders = append(loaders, e, f) + loaders = append(loaders, e) loader := MultiLoader(loaders...) d := &DefaultLoader{}