We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac7fb6 commit ec9bc53Copy full SHA for ec9bc53
internal/gopathwalk/walk.go
@@ -10,7 +10,6 @@ import (
10
"bufio"
11
"bytes"
12
"fmt"
13
- "io/ioutil"
14
"log"
15
"os"
16
"path/filepath"
@@ -135,7 +134,7 @@ func (w *walker) init() {
135
134
// The provided path is one of the $GOPATH entries with "src" appended.
136
func (w *walker) getIgnoredDirs(path string) []string {
137
file := filepath.Join(path, ".goimportsignore")
138
- slurp, err := ioutil.ReadFile(file)
+ slurp, err := os.ReadFile(file)
139
if w.opts.Logf != nil {
140
if err != nil {
141
w.opts.Logf("%v", err)
0 commit comments