aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}