File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package trdsql_test
3
3
import (
4
4
"bytes"
5
5
"fmt"
6
- "io/ioutil"
7
6
"log"
8
7
"os"
9
8
@@ -51,7 +50,7 @@ func Example_options() {
51
50
Ken,Thompson,ken
52
51
"Robert","Griesemer","gri"
53
52
` )
54
- tmpfile , err := ioutil . TempFile (os .TempDir (), "xxx" )
53
+ tmpfile , err := os . CreateTemp (os .TempDir (), "xxx" )
55
54
if err != nil {
56
55
log .Print (err )
57
56
return
Original file line number Diff line number Diff line change 1
1
package trdsql
2
2
3
3
import (
4
- "io/ioutil "
4
+ "io"
5
5
"os"
6
6
"path/filepath"
7
7
"reflect"
@@ -444,7 +444,7 @@ func Test_uncompressedReader(t *testing.T) {
444
444
t .Fatalf ("extFileReader() file open error %s:%s" , tt .fileName , err )
445
445
}
446
446
got := uncompressedReader (file )
447
- r , err := ioutil .ReadAll (got )
447
+ r , err := io .ReadAll (got )
448
448
if err != nil {
449
449
t .Fatalf ("extFileReader() read error %s:%s" , tt .fileName , err )
450
450
}
You can’t perform that action at this time.
0 commit comments