Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCarsRoute ¶
func GetCarsRoute()
Types ¶
type Car ¶
type Car struct {
// contains filtered or unexported fields
}
func (*Car) CalculateTotalConsumption ¶
*
- Calculate the total gasoline consumption of a car for a given distance.
- @param distance distance in km
- @return the total gasoline consumption in l
Click to show internal directories.
Click to hide internal directories.