Skip to content

Commit 1d451b5

Browse files
committed
Update go.mod version to 1.19
Relates to #2292
1 parent cf2c657 commit 1d451b5

File tree

7 files changed

+24
-18
lines changed

7 files changed

+24
-18
lines changed

datachannel_go_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"crypto/rand"
1212
"encoding/binary"
1313
"io"
14-
"io/ioutil"
1514
"math/big"
1615
"reflect"
1716
"regexp"
@@ -419,7 +418,7 @@ func TestEOF(t *testing.T) {
419418
defer func() { assert.NoError(t, dc.Close(), "should succeed") }()
420419

421420
log.Debug("Waiting for ping...")
422-
msg, err2 := ioutil.ReadAll(dc)
421+
msg, err2 := io.ReadAll(dc)
423422
log.Debugf("Received ping! \"%s\"", string(msg))
424423
if err2 != nil {
425424
t.Error(err2)
@@ -466,7 +465,7 @@ func TestEOF(t *testing.T) {
466465
assert.NoError(t, dc.Close(), "should succeed")
467466

468467
log.Debug("Wating for EOF")
469-
ret, err2 := ioutil.ReadAll(dc)
468+
ret, err2 := io.ReadAll(dc)
470469
assert.Nil(t, err2, "should succeed")
471470
assert.Equal(t, 0, len(ret), "should be empty")
472471
}()

examples/internal/signal/http.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package signal
55

66
import (
77
"fmt"
8-
"io/ioutil"
8+
"io"
99
"net/http"
1010
"strconv"
1111
)
@@ -14,7 +14,7 @@ import (
1414
func HTTPSDPServer(port int) chan string {
1515
sdpChan := make(chan string)
1616
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
17-
body, _ := ioutil.ReadAll(r.Body)
17+
body, _ := io.ReadAll(r.Body)
1818
fmt.Fprintf(w, "done")
1919
sdpChan <- string(body)
2020
})

examples/internal/signal/signal.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"encoding/json"
1414
"fmt"
1515
"io"
16-
"io/ioutil"
1716
"os"
1817
"strings"
1918
)
@@ -106,7 +105,7 @@ func unzip(in []byte) []byte {
106105
if err != nil {
107106
panic(err)
108107
}
109-
res, err := ioutil.ReadAll(r)
108+
res, err := io.ReadAll(r)
110109
if err != nil {
111110
panic(err)
112111
}

examples/pion-to-pion/answer/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"encoding/json"
1010
"flag"
1111
"fmt"
12-
"io/ioutil"
12+
"io"
1313
"net/http"
1414
"os"
1515
"sync"
@@ -81,7 +81,7 @@ func main() { // nolint:gocognit
8181
// This allows us to add ICE candidates faster, we don't have to wait for STUN or TURN
8282
// candidates which may be slower
8383
http.HandleFunc("/candidate", func(w http.ResponseWriter, r *http.Request) { //nolint: revive
84-
candidate, candidateErr := ioutil.ReadAll(r.Body)
84+
candidate, candidateErr := io.ReadAll(r.Body)
8585
if candidateErr != nil {
8686
panic(candidateErr)
8787
}

examples/pion-to-pion/offer/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"encoding/json"
1010
"flag"
1111
"fmt"
12-
"io/ioutil"
12+
"io"
1313
"net/http"
1414
"os"
1515
"sync"
@@ -81,7 +81,7 @@ func main() { //nolint:gocognit
8181
// This allows us to add ICE candidates faster, we don't have to wait for STUN or TURN
8282
// candidates which may be slower
8383
http.HandleFunc("/candidate", func(w http.ResponseWriter, r *http.Request) { //nolint: revive
84-
candidate, candidateErr := ioutil.ReadAll(r.Body)
84+
candidate, candidateErr := io.ReadAll(r.Body)
8585
if candidateErr != nil {
8686
panic(candidateErr)
8787
}

go.mod

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
module github.com/pion/webrtc/v4
22

3-
go 1.13
3+
go 1.19
44

55
require (
6-
github.com/onsi/ginkgo v1.16.5 // indirect
7-
github.com/onsi/gomega v1.17.0 // indirect
86
github.com/pion/datachannel v1.5.6
97
github.com/pion/dtls/v2 v2.2.10
108
github.com/pion/ice/v3 v3.0.3
@@ -22,3 +20,17 @@ require (
2220
github.com/stretchr/testify v1.9.0
2321
golang.org/x/net v0.22.0
2422
)
23+
24+
require (
25+
github.com/davecgh/go-spew v1.1.1 // indirect
26+
github.com/google/uuid v1.6.0 // indirect
27+
github.com/onsi/ginkgo v1.16.5 // indirect
28+
github.com/onsi/gomega v1.17.0 // indirect
29+
github.com/pion/mdns v0.0.12 // indirect
30+
github.com/pion/transport/v2 v2.2.4 // indirect
31+
github.com/pion/turn/v3 v3.0.1 // indirect
32+
github.com/pmezard/go-difflib v1.0.0 // indirect
33+
golang.org/x/crypto v0.21.0 // indirect
34+
golang.org/x/sys v0.18.0 // indirect
35+
gopkg.in/yaml.v3 v3.0.1 // indirect
36+
)

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:W
1313
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
1414
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
1515
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
16-
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
1716
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
1817
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
1918
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
2019
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
21-
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
2220
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
2321
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
2422
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
@@ -177,7 +175,6 @@ golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
177175
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
178176
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
179177
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
180-
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
181178
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
182179
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
183180
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
@@ -186,7 +183,6 @@ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miE
186183
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
187184
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
188185
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
189-
google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
190186
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
191187
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
192188
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=

0 commit comments

Comments
 (0)