code: func bufferInput(conn net.Conn, stdin *os.File) {
  	rd := bufio.NewReader(conn)
  	defer conn.Close()
  	for {
  		lineIn, err := rd.ReadBytes('\n')
  		if len(lineIn) == 0 && err != nil {
  			return
  		}
  		_, err = stdin.Write(lineIn)
  		if err != nil {
  			return
  		}
  	}
  }
docs: // bufferInput buffers and write a single line from a remote client to the local app