Skip to content

Commit ded4e12

Browse files
committed
Switch from deprecated ioutil
1 parent 95cb24a commit ded4e12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"errors"
5-
"io/ioutil"
5+
"os"
66
"time"
77

88
"git.iamthefij.com/iamthefij/slog"
@@ -170,7 +170,7 @@ func (config *Config) Init() (err error) {
170170

171171
// LoadConfig will read config from the given path and parse it
172172
func LoadConfig(filePath string) (config Config, err error) {
173-
data, err := ioutil.ReadFile(filePath)
173+
data, err := os.ReadFile(filePath)
174174
if err != nil {
175175
return
176176
}

0 commit comments

Comments
 (0)