From b33f83238823a2a27a8d0f0bac3200bd55bdfc32 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Fri, 16 Sep 2022 17:24:44 +0800 Subject: [PATCH] all: replace io/ioutil with io and os package Signed-off-by: cui fliter --- openpgp/packet/opaque.go | 3 ++- ssh/cipher.go | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/openpgp/packet/opaque.go b/openpgp/packet/opaque.go index 9bfa1ccee0..3984477310 100644 --- a/openpgp/packet/opaque.go +++ b/openpgp/packet/opaque.go @@ -6,8 +6,9 @@ package packet import ( "bytes" - "golang.org/x/crypto/openpgp/errors" "io" + + "golang.org/x/crypto/openpgp/errors" ) // OpaquePacket represents an OpenPGP packet as raw, unparsed data. This is diff --git a/ssh/cipher.go b/ssh/cipher.go index 7f631b3306..c3062cfd13 100644 --- a/ssh/cipher.go +++ b/ssh/cipher.go @@ -13,10 +13,11 @@ import ( "encoding/binary" "errors" "fmt" - "golang.org/x/crypto/chacha20" - "golang.org/x/crypto/internal/poly1305" "hash" "io" + + "golang.org/x/crypto/chacha20" + "golang.org/x/crypto/internal/poly1305" ) const (