[go-nuts] Why does the Response Writer of the http package declare Write rather than embedding io.Writer?

2018-04-12 Thread bonpi bonpi
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 me

Re: [go-nuts] Why does the Response Writer of the http package declare Write rather than embedding io.Writer?

2018-04-12 Thread Ian Lance Taylor
On Thu, Apr 12, 2018 at 4:10 AM, bonpi bonpi wrote: > > 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