code: func (v *Version) Segments() []int {
  	segmentSlice := make([]int, len(v.segments))
  	for i, v := range v.segments {
  		segmentSlice[i] = int(v)
  	}
  	return segmentSlice
  }
docs: // Segments returns the numeric segments of the version as a slice of ints.
  //
  // This excludes any metadata or pre-release information. For example,
  // for a version "1.2.3-beta", segments will return a slice of
  // 1, 2, 3.