From f498f98fca42570b549a9ee2a93c35a79ece378d Mon Sep 17 00:00:00 2001 From: laurfb Date: Mon, 13 Feb 2023 11:21:11 +0200 Subject: [PATCH] Update config.go --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index cf2a2f0..b10c558 100644 --- a/config/config.go +++ b/config/config.go @@ -106,7 +106,8 @@ func Parse(paths []string) (*Config, error) { // try to read file from given paths for _, path := range paths { - data, err = ioutil.ReadFile(path) + //***data, err = ioutil.ReadFile(path) + data, err = os.ReadFile(path) if err == nil { log.Println("Read config from", path) break