Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove io/util for advanced golang #16011

Merged
merged 1 commit into from
Nov 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove io/util for advanced golang
  • Loading branch information
yanggang committed Nov 8, 2022
commit 0742b6391cce99e4ef266a9983f47f92f1cfc529
3 changes: 1 addition & 2 deletions docs/debugging/inspect/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
"time"
Expand All @@ -37,7 +36,7 @@ import (

func inspectToExportType(downloadPath string, datajson bool) error {
decode := func(r io.Reader, file string) ([]byte, error) {
b, e := ioutil.ReadAll(r)
b, e := io.ReadAll(r)
if e != nil {
return nil, e
}
Expand Down