func Decode(v Version) Pair {
	minorStr := strconv.Itoa(v.Minor)
	patchStr := strconv.Itoa(v.Patch)

	widthMinor := mustAtoi(minorStr[:1])
	widthPatch := mustAtoi(patchStr[:1])

	return Pair{
		First: Version{
			Major: v.Major,
			Minor: mustAtoi(minorStr[1 : widthMinor+1]),
			Patch: mustAtoi(patchStr[1 : widthPatch+1]),
		},
		Second: Version{
			Major: v.Major,
			Minor: mustAtoi(minorStr[widthMinor+1:]),
			Patch: mustAtoi(patchStr[widthPatch+1:]),
		},
	}
}
// Decode decodes the given semver triplet into the original
// version pair.
Decode decodes the given semver triplet into the original
version pair.
// Decode decodes the given semver triplet into the original // version pair .
func Decode(v Version) Pair {
	minorStr := strconv.Itoa(v.Minor)
	patchStr := strconv.Itoa(v.Patch)
	widthMinor := mustAtoi(minorStr[:1])
	widthPatch := mustAtoi(patchStr[:1])
	return Pair{
		First: Version{
			Major: v.Major,
			Minor: mustAtoi(minorStr[1 : widthMinor+1]),
			Patch: mustAtoi(patchStr[1 : widthPatch+1]),
		},
		Second: Version{
			Major: v.Major,
			Minor: mustAtoi(minorStr[widthMinor+1:]),
			Patch: mustAtoi(patchStr[widthPatch+1:]),
		},
	}
}
func Decode ( v Version ) Pair { minorStr := strconv . Itoa ( v . Minor ) patchStr := strconv . Itoa ( v . Patch ) widthMinor := mustAtoi ( minorStr [ : 1 ] ) widthPatch := mustAtoi ( patchStr [ : 1 ] ) return Pair { First : Version { Major : v . Major , Minor : mustAtoi ( minorStr [ 1 : widthMinor + 1 ] ) , Patch : mustAtoi ( patchStr [ 1 : widthPatch + 1 ] ) , } , Second : Version { Major : v . Major , Minor : mustAtoi ( minorStr [ widthMinor + 1 : ] ) , Patch : mustAtoi ( patchStr [ widthPatch + 1 : ] ) , } , } }
Decode decodes the given semver triplet into the original
version pair.
Decode decodes the given semver triplet into the original version pair .