update to go 1.16

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-02-17 23:38:32 +03:00
parent 5596345382
commit cf2aa827e4
5 changed files with 10 additions and 12 deletions

View File

@@ -3,7 +3,6 @@ package codec
import (
"encoding/json"
"io"
"io/ioutil"
)
type noopCodec struct {
@@ -20,7 +19,7 @@ func (c *noopCodec) ReadHeader(conn io.Reader, m *Message, t MessageType) error
func (c *noopCodec) ReadBody(conn io.Reader, b interface{}) error {
// read bytes
buf, err := ioutil.ReadAll(conn)
buf, err := io.ReadAll(conn)
if err != nil {
return err
}