diff options
| author | Raúl Benencia <id@rbenencia.name> | 2026-06-05 17:02:09 -0300 |
|---|---|---|
| committer | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2026-06-05 17:07:52 -0300 |
| commit | 17b1e22a87f8fbdf90b052070fbf704a6729ed60 (patch) | |
| tree | c144a9500f3557ce045551aef9eb6f97117dc3d2 /internal/mappings/parse.go | |
| parent | 07a844375e9052b998f425fbe65094bc555974ba (diff) | |
Replace io/ioutil with os equivalents
ioutil.ReadFile and ioutil.ReadDir have been deprecated since Go 1.16.
Diffstat (limited to 'internal/mappings/parse.go')
| -rw-r--r-- | internal/mappings/parse.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/mappings/parse.go b/internal/mappings/parse.go index fe6a7c2..f2e1756 100644 --- a/internal/mappings/parse.go +++ b/internal/mappings/parse.go @@ -15,7 +15,6 @@ package mappings import ( - "io/ioutil" "os" "gopkg.in/yaml.v3" @@ -58,7 +57,7 @@ func ParseYamlMappings(logger log.Logger, mappingsFile string) *Mappings { var mappings Mappings logger.Info("reading mappings", "component", "config", "source", mappingsFile) - yamlFile, err := ioutil.ReadFile(mappingsFile) + yamlFile, err := os.ReadFile(mappingsFile) if err != nil { logger.Error("read mappings failed", "err", err) |
