Skip to content

Commit

Permalink
Fix some deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Aug 4, 2023
1 parent ff42f38 commit 49f3091
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mycelo/internal/utils/jsonfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package utils

import (
"encoding/json"
"io/ioutil"
"os"
)

func ReadJson(out interface{}, filepath string) error {
byteValue, err := ioutil.ReadFile(filepath)
byteValue, err := os.ReadFile(filepath)
if err != nil {
return err
}
Expand All @@ -20,5 +20,5 @@ func WriteJson(in interface{}, filepath string) error {
return err
}

return ioutil.WriteFile(filepath, byteValue, 0644)
return os.WriteFile(filepath, byteValue, 0644)
}

0 comments on commit 49f3091

Please sign in to comment.