code: func (r *Reader) toInt(input string) int {
  	result, err := strconv.Atoi(prune(input))
  	if err != nil {
  		return -1
  	}
  	return result
  }
docs: // This method should save a few lines, converting provided string to int while error is logged but not returned