aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-06-01 10:20:24 +0200
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-06-01 10:20:24 +0200
commitb853bb6095179c56c8605b1da920b5b3bda21f67 (patch)
treeca244cfce3d2ff8c8225241814c654170f5267cf /types
parent6aa7e4879ad72bfe5e344f6a55b22837fd6ce2bd (diff)
use ioutil instead of io (go v1.14)
Diffstat (limited to 'types')
-rw-r--r--types/ascii.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/types/ascii.go b/types/ascii.go
index 565e52d..d27d79b 100644
--- a/types/ascii.go
+++ b/types/ascii.go
@@ -5,6 +5,7 @@ import (
"encoding/hex"
"fmt"
"io"
+ "io/ioutil"
"strconv"
)
@@ -64,7 +65,7 @@ type MessageASCII struct {
// NewMessageASCII unpacks an incoming ASCII message
func NewMessageASCII(r io.Reader, numFieldExpected int) (*MessageASCII, error) {
- buf, err := io.ReadAll(r)
+ buf, err := ioutil.ReadAll(r)
if err != nil {
return nil, fmt.Errorf("ReadAll: %v", err)
}