mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
remove deprecated ioutil
This commit is contained in:
parent
8d957a53e2
commit
29819910a5
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ package config
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"nfsense.net/nfsense/internal/definitions"
|
||||
)
|
||||
|
@ -14,7 +14,7 @@ func (m *ConfigManager) saveConfig(path string, conf *definitions.Config) error
|
|||
return fmt.Errorf("Marshal Config: %w", err)
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile(path, data, 0644)
|
||||
err = os.WriteFile(path, data, 0644)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Write Config: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue