Skip to content

Commit

Permalink
Merge pull request #104 from systemli/Remouve-usage-of-ioutils
Browse files Browse the repository at this point in the history
Remove usage of ioutils
  • Loading branch information
0x46616c6b authored Apr 2, 2024
2 parents 3999e72 + 797e434 commit ba2d9a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"io/ioutil"
"os"
"time"

"gopkg.in/yaml.v2"
Expand Down Expand Up @@ -48,7 +48,7 @@ func NewConfig() *Config {
func LoadConfig(path *string) (error, *Config) {
cfg := NewConfig()

bytes, err := ioutil.ReadFile(*path)
bytes, err := os.ReadFile(*path)
if err != nil {
return err, cfg
}
Expand Down

0 comments on commit ba2d9a8

Please sign in to comment.