From 111cb917096b20f8387d5de4eb25406c2be359ee Mon Sep 17 00:00:00 2001 From: Maya Sergeeva Date: Mon, 28 Nov 2022 13:03:14 +0300 Subject: [PATCH] Preserve old load function --- reader.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reader.go b/reader.go index 4d325de..75b4413 100644 --- a/reader.go +++ b/reader.go @@ -18,6 +18,13 @@ var ErrNoDefaults = errors.New("no default config") const defaultConfigPath = "./configuration" +var ErrDeprecatedMethod = errors.New("function ReadConfigs(cfgPath) was deprecated, use Read(stage, cfgPath, verbose) instead") + +//ReadConfigs deprecated +func ReadConfigs(_ string) ([]byte, error) { + return nil, ErrDeprecatedMethod +} + // Read Reads yaml files from configuration directory with sub folders // as application stage and merges config files in one configuration per stage. func Read(stageI stage.Interface, cfgPath string, verbose bool) ([]byte, error) {