Skip to content

Commit dc8773a

Browse files
committed
fix: update for Go 1.19
1 parent 634e0a1 commit dc8773a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package vlp16
22

33
import (
4-
"io/ioutil"
4+
"os"
55

66
"gotest.tools/v3/assert"
77
)
88

99
func exampleRawPacket(t assert.TestingT) *RawPacket {
10-
data, err := ioutil.ReadFile("testdata/packet.bin")
10+
data, err := os.ReadFile("testdata/packet.bin")
1111
assert.NilError(t, err)
1212
var rawPacket RawPacket
1313
copy(rawPacket[:], data)

0 commit comments

Comments
 (0)