From: Josh Bleecher Snyder Date: Mon, 27 Mar 2017 22:25:44 +0000 (-0700) Subject: cmd/vet: remove Peek from list of canonical methods X-Git-Tag: go1.9beta1~955 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73912a1b914251d29eb60c8e85262d931f895b90;p=gostls13.git cmd/vet: remove Peek from list of canonical methods It is insufficiently canonical; see the discussion at issue 19719. Fixes #19719 Change-Id: I0559ff3b1b39d7bc4b446d104f36fdf8ce3da50e Reviewed-on: https://go-review.googlesource.com/38722 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Rob Pike --- diff --git a/src/cmd/vet/method.go b/src/cmd/vet/method.go index 8a554e152a..baefa554a4 100644 --- a/src/cmd/vet/method.go +++ b/src/cmd/vet/method.go @@ -48,7 +48,6 @@ var canonicalMethods = map[string]MethodSig{ "GobEncode": {[]string{}, []string{"[]byte", "error"}}, // gob.GobEncoder "MarshalJSON": {[]string{}, []string{"[]byte", "error"}}, // json.Marshaler "MarshalXML": {[]string{"*xml.Encoder", "xml.StartElement"}, []string{"error"}}, // xml.Marshaler - "Peek": {[]string{"=int"}, []string{"[]byte", "error"}}, // image.reader (matching bufio.Reader) "ReadByte": {[]string{}, []string{"byte", "error"}}, // io.ByteReader "ReadFrom": {[]string{"=io.Reader"}, []string{"int64", "error"}}, // io.ReaderFrom "ReadRune": {[]string{}, []string{"rune", "int", "error"}}, // io.RuneReader