X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=ns.go;h=a47471198ca93274f7c4b6467386ecbc642b9d38;hb=5f0a9472b5bf641e0fcaddd86b7f1e87a44ed739;hp=af1159f39262f4b6a23f0aac8a325284345e56af;hpb=b8868fafef88a7b8320d6e68a3c4c4697950d1e1;p=netstring.git diff --git a/ns.go b/ns.go index af1159f..a474711 100644 --- a/ns.go +++ b/ns.go @@ -1,6 +1,6 @@ /* netstring -- netstring format serialization library -Copyright (C) 2015-2020 Sergey Matveev +Copyright (C) 2015-2023 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,5 +31,5 @@ along with this program. If not, see . // size, err := r.Next() // size is 5 // r.Discard() // skip that chunk // size, err = r.Next() // size is 6 -// data, _ := ioutil.ReadAll(r) // data contains "world!" +// data, _ := io.ReadAll(r) // data contains "world!" package netstring