code: func versionCompare(v1, v2 []int) (int, error) {
  	if len(v1) != len(v2) {
  		return 0, errors.New("version length mismatch")
  	}
  
  	for idx, v2S := range v2 {
  		v1S := v1[idx]
  		if v1S > v2S {
  			return 1, nil
  		}
  
  		if v1S < v2S {
  			return -1, nil
  		}
  	}
  	return 0, nil
  }
docs: // versionCompare take to versions split into integer arrays and attempts to compare them
  // An error will be returned if there is an array length mismatch.
  // Return values are as follows
  // -1 - v1 is less than v2
  // 0  - v1 is equal to v2
  // 1  - v1 is greater than v2