code: func writeBuffer(copyFrom <-chan []byte, socketWrite io.Writer) {
  	for buf := range copyFrom {
  		if len(buf) > 0 {
  			size, err := socketWrite.Write(buf)
  			if err != nil {
  				log.Print("Error encountered in writeBuffer:", err)
  				return
  			} else if size != len(buf) {
  				panic(errors.New("Short Write: io.Writer not compliant"))
  			}
  		}
  	}
  }
docs: // this simply copies data from the chan to the socketWrite writer