code: func (p *pktline) readPacketList() ([]string, error) {
  	var list []string
  	for {
  		data, err := p.readPacketText()
  		if err != nil {
  			return nil, err
  		}
  
  		if len(data) == 0 {
  			break
  		}
  
  		list = append(list, data)
  	}
  
  	return list, nil
  }
docs: // readPacketList reads as many packets as possible using the `readPacketText`
  // function before encountering a flush packet. It returns a slice of all the
  // packets it read, or an error if one was encountered.