code: func versionSegments(segments string) []int {
  	segments = strings.Trim(segments, "v")
  	segments = strings.Split(segments, "-")[0]
  	s := strings.Split(segments, ".")
  	segmentSlice := make([]int, len(s))
  	for i, v := range s {
  		segmentSlice[i], _ = strconv.Atoi(v)
  	}
  	return segmentSlice
  }
docs: // versionSegments returns the numeric segments of the version as a slice of ints.