The reasoning that applies to incoming streams also applies to outgoing ones. We have the io.Writer interface, in which the application can only send data, and the io.WriteCloser interface, in which it is also able to close the connection.
The reasoning that applies to incoming streams also applies to outgoing ones. We have the io.Writer interface, in which the application can only send data, and the io.WriteCloser interface, in which it is also able to close the connection.
3.16.66.156