Documentation
¶
Index ¶
Constants ¶
View Source
const ( LuxuryCarType = 1 FamiliarCarType = 2 )
View Source
const ( SportMotorbikeType = 1 CruiseMotorbikeType = 2 )
View Source
const ( CarFactoryType = 1 MotorbikeFactoryType = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarFactory ¶
type CarFactory struct{}
func (*CarFactory) GetVehicle ¶
func (c *CarFactory) GetVehicle(v int) (Vehicle, error)
type CruiseMotorbike ¶
type CruiseMotorbike struct{}
func (*CruiseMotorbike) GetSeats ¶
func (c *CruiseMotorbike) GetSeats() int
func (*CruiseMotorbike) GetType ¶
func (c *CruiseMotorbike) GetType() int
func (*CruiseMotorbike) GetWheels ¶
func (c *CruiseMotorbike) GetWheels() int
type FamiliarCar ¶
type FamiliarCar struct{}
func (*FamiliarCar) GetDoors ¶
func (l *FamiliarCar) GetDoors() int
func (*FamiliarCar) GetSeats ¶
func (l *FamiliarCar) GetSeats() int
func (*FamiliarCar) GetWheels ¶
func (l *FamiliarCar) GetWheels() int
type MotorbikeFactory ¶
type MotorbikeFactory struct{}
func (*MotorbikeFactory) GetVehicle ¶
func (m *MotorbikeFactory) GetVehicle(v int) (Vehicle, error)
type SportMotorbike ¶
type SportMotorbike struct{}
func (*SportMotorbike) GetSeats ¶
func (s *SportMotorbike) GetSeats() int
func (*SportMotorbike) GetType ¶
func (s *SportMotorbike) GetType() int
func (*SportMotorbike) GetWheels ¶
func (s *SportMotorbike) GetWheels() int
type VehicleFactory ¶
func GetVehicleFactory ¶
func GetVehicleFactory(f int) (VehicleFactory, error)
Click to show internal directories.
Click to hide internal directories.