code: func (v *Version) Compare(other string) (int, error) {
  	ov, err := parse(other, v.semver)
  	if err != nil {
  		return 0, err
  	}
  	return v.compareInternal(ov), nil
  }
docs: // Compare compares v against a version string (which will be parsed as either Semantic
  // or non-Semantic depending on v). On success it returns -1 if v is less than other, 1 if
  // it is greater than other, or 0 if they are equal.