Update go.mod version to 1.19

Relates to pion/webrtc#2292
This commit is contained in:
Sean DuBois 2024-04-02 22:35:47 -04:00
parent db2b581995
commit 4d4557199d
2 changed files with 12 additions and 3 deletions

12
go.mod
View File

@ -1,6 +1,6 @@
module github.com/pion/stun/v2
go 1.12
go 1.19
require (
github.com/pion/dtls/v2 v2.2.10
@ -8,3 +8,13 @@ require (
github.com/pion/transport/v3 v3.0.2
github.com/stretchr/testify v1.9.0
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pion/transport/v2 v2.2.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/sys v0.18.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

View File

@ -15,7 +15,6 @@ import (
"fmt"
"hash/crc64"
"io"
"io/ioutil"
"net"
"os"
"path/filepath"
@ -558,7 +557,7 @@ func loadData(tb testing.TB, name string) []byte {
tb.Fatal(errClose)
}
}()
v, err := ioutil.ReadAll(f)
v, err := io.ReadAll(f)
if err != nil {
tb.Fatal(err)
}