Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions internal/wire/testdata/InterfaceValue/foo/foo.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ package main

import (
"fmt"
"io/ioutil"
"io"
)

func main() {
r := injectedReader()
buf, _ := ioutil.ReadAll(r)
buf, _ := io.ReadAll(r) // ioutil.ReadAll --> io.ReadAll

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this comment for?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the confusion! I deleted my previous comment as it was irrelevant to the PR.
The changes are ready for your review. Thanks!

fmt.Println(string(buf))
}
4 changes: 2 additions & 2 deletions internal/wire/testdata/ValueIsInterfaceValue/foo/foo.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ package main

import (
"fmt"
"io/ioutil"
"io"
"strings"
)

func main() {
r := injectedReader(strings.NewReader("hello world"))
buf, _ := ioutil.ReadAll(r)
buf, _ := io.ReadAll(r) // ioutil.ReadAll --> io.ReadAll
fmt.Println(string(buf))
}