func BetterLap(laps []model.Lap) model.Lap {
	if len(laps) > 0 {
		sort.SliceStable(laps, func(a int, b int) bool {
			return laps[a].LapTime.Before(laps[b].LapTime)
		})

		return laps[0]
	}
	return model.Lap{}
}
// BetterLap melhor volta da corrida
BetterLap melhor volta da corrida
// BetterLap melhor volta da corrida
func BetterLap(laps []model.Lap) model.Lap {
	if len(laps) > 0 {
		sort.SliceStable(laps, func(a int, b int) bool {
			return laps[a].LapTime.Before(laps[b].LapTime)
		})
		return laps[0]
	}
	return model.Lap{}
}
func BetterLap ( laps [ ] model . Lap ) model . Lap { if len ( laps ) > 0 { sort . SliceStable ( laps , func ( a int , b int ) bool { return laps [ a ] . LapTime . Before ( laps [ b ] . LapTime ) } ) return laps [ 0 ] } return model . Lap { } }
BetterLap melhor volta da corrida
BetterLap melhor volta da corrida