code: func ReadUntilFromBufioReader(r *bufio.Reader, delim byte) ([]byte, error) {
  	value, err := r.ReadBytes(delim)
  	if err != nil || len(value) == 0 {
  		return nil, err
  	}
  
  	return value[:len(value)-1], nil
  }
docs: // ReadUntilFromBufioReader is like bufio.ReadBytes but drops the delimiter
  // from the result.