Skip to content

Move from io/ioutil as it is deprecated #370

Closed
@keystroke3

Description

@keystroke3

io/ioutil is now deprecated but is still being used here:

❯ rg 'ioutil\.' .
./read.go
41:	b, err := ioutil.ReadAll(r)

./dial_test.go
78:					Body: ioutil.NopCloser(strings.NewReader("hi")),
100:				Body:       ioutil.NopCloser(strings.NewReader("hi")),

./dial.go
117:			b, _ := ioutil.ReadAll(r)
119:			resp.Body = ioutil.NopCloser(bytes.NewReader(b))

./examples/chat/chat.go
101:	msg, err := ioutil.ReadAll(body)

./conn_test.go
177:		b, err := ioutil.ReadAll(n1)
208:		_, err := ioutil.ReadAll(n1)

./autobahn_test.go
149:	b, err := ioutil.ReadAll(r)
164:	wstestOut, err := ioutil.ReadFile(path)
209:	f, err := ioutil.TempFile("", "temp.json")```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions