Skip to content

Commit

Permalink
fix: update for Go 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
mlveggo committed Aug 27, 2022
1 parent 634e0a1 commit dc8773a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package vlp16

import (
"io/ioutil"
"os"

"gotest.tools/v3/assert"
)

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

0 comments on commit dc8773a

Please sign in to comment.