io.Closer simply says "Closer is the interface that wraps the basic Close 
method," but does not document its Close method.

Effective Go says:
"There are a number of such names and it's productive to honor them and the 
function names they capture. Read, Write, Close, Flush, String and so on 
have canonical signatures and meanings. To avoid confusion, don't give your 
method one of those names unless it has the same signature and meaning." 
(https://golang.org/doc/effective_go#interface-names)
...but does not elaborate on what the canonical meanings are.

So what is the canonical meaning of a Close method?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/71eaa447-b79b-494f-bde5-c46aaf4ee5c6n%40googlegroups.com.

Reply via email to