From ded4e129a123e20ee20ee29969bb9a56a96600ec Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 18 Apr 2023 16:17:06 -0700 Subject: [PATCH] Switch from deprecated ioutil --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 7c21d5b..0e3c7d6 100644 --- a/config.go +++ b/config.go @@ -2,7 +2,7 @@ package main import ( "errors" - "io/ioutil" + "os" "time" "git.iamthefij.com/iamthefij/slog" @@ -170,7 +170,7 @@ func (config *Config) Init() (err error) { // LoadConfig will read config from the given path and parse it func LoadConfig(filePath string) (config Config, err error) { - data, err := ioutil.ReadFile(filePath) + data, err := os.ReadFile(filePath) if err != nil { return }