func updateResult(lap model.Lap, r model.Result) model.Result {
	moreTime := (time.Duration(lap.LapTime.Minute()) * time.Minute) +
		(time.Duration(lap.LapTime.Second()) * time.Second) +
		(time.Duration(lap.LapTime.Nanosecond()) * time.Nanosecond)

	if lap.LapID > r.Laps {
		r.Laps = lap.LapID
	}
	r.RunnerTime = r.RunnerTime.Add(moreTime)
	return r
}
// updateResult Atualiza os dados de um corredor
updateResult Atualiza os dados de um corredor
// updateResult Atualiza os dados de um corredor
func updateResult(lap model.Lap, r model.Result) model.Result {
	moreTime := (time.Duration(lap.LapTime.Minute()) * time.Minute) +
		(time.Duration(lap.LapTime.Second()) * time.Second) +
		(time.Duration(lap.LapTime.Nanosecond()) * time.Nanosecond)
	if lap.LapID > r.Laps {
		r.Laps = lap.LapID
	}
	r.RunnerTime = r.RunnerTime.Add(moreTime)
	return r
}
func updateResult ( lap model . Lap , r model . Result ) model . Result { moreTime := ( time . Duration ( lap . LapTime . Minute ( ) ) * time . Minute ) + ( time . Duration ( lap . LapTime . Second ( ) ) * time . Second ) + ( time . Duration ( lap . LapTime . Nanosecond ( ) ) * time . Nanosecond ) if lap . LapID > r . Laps { r . Laps = lap . LapID } r . RunnerTime = r . RunnerTime . Add ( moreTime ) return r }
updateResult Atualiza os dados de um corredor
updateResult Atualiza os dados de um corredor