refactor: replace uses of ioutil with io and os (#223)

This commit is contained in:
Daniel Moran
2021-08-04 14:45:22 -04:00
committed by GitHub
parent aafdda744d
commit d615694ee9
38 changed files with 227 additions and 240 deletions

View File

@ -2,7 +2,7 @@ package csv2lp
import (
"fmt"
"io/ioutil"
"io"
"strings"
"testing"
@ -184,7 +184,7 @@ func Test_Examples(t *testing.T) {
comma := example.normalize()
transformer := CsvToLineProtocol(strings.NewReader(example.csv))
transformer.SkipRowOnError(true)
result, err := ioutil.ReadAll(transformer)
result, err := io.ReadAll(transformer)
if err != nil {
require.Nil(t, fmt.Sprintf("%s", err))
}