code: func (tw *timeoutWriter) Write(p []byte) (int, error) {
  	if tw.err != nil {
  		return 0, tw.err
  	}
  
  	var n int
  	tw.conn.SetWriteDeadline(time.Now().Add(tw.timeout))
  	n, tw.err = tw.conn.Write(p)
  	tw.conn.SetWriteDeadline(time.Time{})
  	return n, tw.err
  }
docs: // Write implements the io.Writer interface.