func SupportedLts() []string {
	seriesVersionsMutex.Lock()
	defer seriesVersionsMutex.Unlock()
	updateSeriesVersionsOnce()

	versions := []string{}
	for _, version := range ubuntuSeries {
		if !version.LTS || !version.Supported {
			continue
		}
		versions = append(versions, version.Version)
	}
	sort.Strings(versions)
	sorted := []string{}
	for _, v := range versions {
		sorted = append(sorted, versionSeries[v])
	}
	return sorted
}
// SupportedLts are the current supported LTS series in ascending order.
SupportedLts are the current supported LTS series in ascending order.
// SupportedLts are the current supported LTS series in ascending order .
func SupportedLts() []string {
	seriesVersionsMutex.Lock()
	defer seriesVersionsMutex.Unlock()
	updateSeriesVersionsOnce()
	versions := []string{}
	for _, version := range ubuntuSeries {
		if !version.LTS || !version.Supported {
			continue
		}
		versions = append(versions, version.Version)
	}
	sort.Strings(versions)
	sorted := []string{}
	for _, v := range versions {
		sorted = append(sorted, versionSeries[v])
	}
	return sorted
}
func SupportedLts ( ) [ ] string { seriesVersionsMutex . Lock ( ) defer seriesVersionsMutex . Unlock ( ) updateSeriesVersionsOnce ( ) versions := [ ] string { } for _ , version := range ubuntuSeries { if ! version . LTS || ! version . Supported { continue } versions = append ( versions , version . Version ) } sort . Strings ( versions ) sorted := [ ] string { } for _ , v := range versions { sorted = append ( sorted , versionSeries [ v ] ) } return sorted }
SupportedLts are the current supported LTS series in ascending order.
SupportedLts are the current supported LTS series in ascending order .