I know that there are no functional differences in them by duck typing. But since the Response package already has dependency on the io package(for example,http.File), so it does not have to lose its dependency, and I do not think that "Write(byte)(int,error)" of ResponseWriter has a broader meaning so that many other "String() string" declarations do not embed fmt.Stringer.
Why does not http.ResponseWriter embed io.Writer? I think that the reason will help us understand the interface of Golang more deeply. Thanks. -- 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. For more options, visit https://groups.google.com/d/optout.