docs(echoreadall): fix function echoReadAll comment (#881)

As of Go 1.16, ioutil.ReadAll was deprecated.
This commit is contained in:
Alan Xu 2024-01-18 14:21:03 +08:00 committed by GitHub
parent dcea2f088c
commit 871f6bbc74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func echoCopyFull(w http.ResponseWriter, r *http.Request) {
}
// echoReadAll echoes messages from the client by reading the entire message
// with ioutil.ReadAll.
// with io.ReadAll.
func echoReadAll(w http.ResponseWriter, r *http.Request, writeMessage, writePrepared bool) {
conn, err := upgrader.Upgrade(w, r, nil)
if err != nil {