From 94a690b5e943e6be92e60ff54a883e68a9b54866 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Thu, 30 Dec 2021 15:37:29 +0100 Subject: ascii: Use dependencies based on Go 1.15.9 --- go.mod | 2 +- pkg/ascii/ascii.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 9e00d6f..de3603c 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module git.sigsum.org/sigsum-lib-go -go 1.14 +go 1.15 diff --git a/pkg/ascii/ascii.go b/pkg/ascii/ascii.go index 350890c..3521d7d 100644 --- a/pkg/ascii/ascii.go +++ b/pkg/ascii/ascii.go @@ -23,6 +23,7 @@ import ( "bytes" "fmt" "io" + "io/ioutil" "reflect" "strconv" "strings" @@ -146,7 +147,7 @@ func (e *Encoding) Deserialize(r io.Reader, i interface{}) error { return err } - buf, err := io.ReadAll(r) + buf, err := ioutil.ReadAll(r) if err != nil { return fmt.Errorf("ascii: failed reading incoming buffer") } -- cgit v1.2.3