From 871f6bbc7415d01c1121e514bbd6700e7a3a7cd6 Mon Sep 17 00:00:00 2001 From: Alan Xu Date: Thu, 18 Jan 2024 14:21:03 +0800 Subject: [PATCH] docs(echoreadall): fix function echoReadAll comment (#881) As of Go 1.16, ioutil.ReadAll was deprecated. --- examples/autobahn/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/autobahn/server.go b/examples/autobahn/server.go index 1cd273f6..ccf542f8 100644 --- a/examples/autobahn/server.go +++ b/examples/autobahn/server.go @@ -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 {