func NewLaps(lines [][]string) ([]model.Lap, error) {
	laps := make([]model.Lap, 0)

	for _, line := range lines {
		lap, err := newLap(line)
		if err != nil {
			fmt.Printf("[NewLaps] Error: %v\n", err)
			return nil, err
		}

		laps = append(laps, *lap)
	}

	return laps, nil
}
// NewLaps map de cada linha
NewLaps map de cada linha
// NewLaps map de cada linha
func NewLaps(lines [][]string) ([]model.Lap, error) {
	laps := make([]model.Lap, 0)
	for _, line := range lines {
		lap, err := newLap(line)
		if err != nil {
			fmt.Printf("[NewLaps] Error: %v\n", err)
			return nil, err
		}
		laps = append(laps, *lap)
	}
	return laps, nil
}
func NewLaps ( lines [ ] [ ] string ) ( [ ] model . Lap , error ) { laps := make ( [ ] model . Lap , 0 ) for _ , line := range lines { lap , err := newLap ( line ) if err != nil { fmt . Printf ( " \n " , err ) return nil , err } laps = append ( laps , * lap ) } return laps , nil }
NewLaps map de cada linha
NewLaps map de cada linha