fix: use of ioutil package (#5261)
* fix ioutil.NopCloser * fix ioutil.ReadAll * fix ioutil.ReadFile * fix ioutil.WriteFile * run goimports -w -format-only ./ * update CHANGELOG.md
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
package toml
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -32,7 +31,7 @@ type Config struct {
|
||||
|
||||
// Parse accepts filename as the parameter
|
||||
func (c *Config) Parse(filename string) (config.Configer, error) {
|
||||
ctx, err := ioutil.ReadFile(filename)
|
||||
ctx, err := os.ReadFile(filename)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user