From: Rob Pike Date: Tue, 7 May 2013 18:41:36 +0000 (-0700) Subject: effective_go.html: be more accepting in the guidelines for interface names X-Git-Tag: go1.2rc2~1539 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2f326da27e61194320cf925b1e2362603d9306b3;p=gostls13.git effective_go.html: be more accepting in the guidelines for interface names Fixes #5421. R=golang-dev, bradfitz, adg CC=golang-dev https://golang.org/cl/9274043 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index 227659ef4c..1b3168683a 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -403,8 +403,10 @@ if owner != user {

By convention, one-method interfaces are named by -the method name plus the -er suffix: Reader, -Writer, Formatter etc. +the method name plus an -er suffix or similar modification +to construct an agent noun: Reader, +Writer, Formatter, +CloseNotifier etc.