Skip to content

Commit f21c5ff

Browse files
committed
Proposing an upgrade on upstream from go1.13 to 1.19
Signed-off-by: Antonette Caldwell <pullmana8@gmail.com>
1 parent 693a7fd commit f21c5ff

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

upstream/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM golang:1.13.5 as bd
1+
# syntax=docker/dockerfile:1
2+
3+
FROM golang:1.19.1 as bd
24
WORKDIR /github.com/layer5io/wasm-upstream
35
ADD . .
46
RUN GOPROXY=direct GOSUMDB=off go build -a -o /upstream .

upstream/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/layer5io/wasm-filters/upstream
2+
3+
go 1.19

upstream/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ package main
22

33
import (
44
"fmt"
5-
"io/ioutil"
5+
"io"
66
"net/http"
77
)
88

99
var gldata = ""
1010

1111
func store(w http.ResponseWriter, req *http.Request) {
1212
defer req.Body.Close()
13-
data, err := ioutil.ReadAll(req.Body)
13+
data, err := io.ReadAll(req.Body)
1414
if err != nil {
1515
return
1616
}

0 commit comments

Comments
 (0)