Skip to content

Commit

Permalink
Preserve old load function
Browse files Browse the repository at this point in the history
  • Loading branch information
Maya Sergeeva committed Nov 28, 2022
1 parent d735ec3 commit 111cb91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 111cb91

Please sign in to comment.