func (src List) Newest() (version.Number, List) {
	var result List
	var best version.Number
	for _, tools := range src {
		if best.Compare(tools.Version.Number) < 0 {
			// Found new best number; reset result list.
			best = tools.Version.Number
			result = append(result[:0], tools)
		} else if tools.Version.Number == best {
			result = append(result, tools)
		}
	}
	return best, result
}
// Newest returns the greatest version in src, and the tools with that version.
Newest returns the greatest version in src, and the tools with that version.
// Newest returns the greatest version in src and the tools with that version .
func (src List) Newest() (version.Number, List) {
	var result List
	var best version.Number
	for _, tools := range src {
		if best.Compare(tools.Version.Number) < 0 {
			best = tools.Version.Number
			result = append(result[:0], tools)
		} else if tools.Version.Number == best {
			result = append(result, tools)
		}
	}
	return best, result
}
func ( src List ) Newest ( ) ( version . Number , List ) { var result List var best version . Number for _ , tools := range src { if best . Compare ( tools . Version . Number ) < 0 { best = tools . Version . Number result = append ( result [ : 0 ] , tools ) } else if tools . Version . Number == best { result = append ( result , tools ) } } return best , result }
Newest returns the greatest version in src, and the tools with that version.
Newest returns the greatest version in src and the tools with that version .
// Found new best number; reset result list.