From f43981bd99a8f0a5c2c619b96db60132e83504e7 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Fri, 29 Mar 2024 23:22:46 +0200 Subject: [PATCH] Refactor --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index e42000e..225aaef 100644 --- a/config.go +++ b/config.go @@ -2,7 +2,7 @@ package main import ( "encoding/json" - "io/ioutil" + "io" "os" ) @@ -43,7 +43,7 @@ func ReadConfig(path string) (Config, error) { defer file.Close() // read file - bytes, err := ioutil.ReadAll(file) + bytes, err := io.ReadAll(file) if err != nil { return config, err }