Documentation
¶
Index ¶
Constants ¶
View Source
const ( BmwXSeriesType = 1 BmwISeriesType = 2 )
View Source
const ( FordSedanType = 1 FordSuvType = 2 )
View Source
const ( BmwFactoryType = 1 FordFactoryType = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMWFactory ¶
type BMWFactory struct{}
func (*BMWFactory) NewVehicle ¶
func (*BMWFactory) NewVehicle(series int) (Vehicle, error)
type BmwISeries ¶
type BmwISeries struct {
// contains filtered or unexported fields
}
func (*BmwISeries) GetManufacturer ¶
func (*BmwISeries) GetManufacturer() string
func (*BmwISeries) GetModel ¶
func (i *BmwISeries) GetModel() string
func (*BmwISeries) GetSeries ¶
func (*BmwISeries) GetSeries() string
type BmwXSeries ¶
type BmwXSeries struct {
// contains filtered or unexported fields
}
func (*BmwXSeries) GetManufacturer ¶
func (*BmwXSeries) GetManufacturer() string
func (*BmwXSeries) GetModel ¶
func (x *BmwXSeries) GetModel() string
func (*BmwXSeries) GetSeries ¶
func (x *BmwXSeries) GetSeries() string
type FordFactory ¶
type FordFactory struct{}
func (*FordFactory) NewVehicle ¶
func (*FordFactory) NewVehicle(t int) (Vehicle, error)
type FordSedanSeries ¶
type FordSedanSeries struct {
// contains filtered or unexported fields
}
func (*FordSedanSeries) GetManufacturer ¶
func (*FordSedanSeries) GetManufacturer() string
func (*FordSedanSeries) GetModel ¶
func (f *FordSedanSeries) GetModel() string
func (*FordSedanSeries) GetType ¶
func (*FordSedanSeries) GetType() string
type FordSuvSeries ¶
type FordSuvSeries struct {
// contains filtered or unexported fields
}
func (*FordSuvSeries) GetManufacturer ¶
func (*FordSuvSeries) GetManufacturer() string
func (*FordSuvSeries) GetModel ¶
func (f *FordSuvSeries) GetModel() string
func (*FordSuvSeries) GetType ¶
func (*FordSuvSeries) GetType() string
type VehicleFactory ¶
func GetVehicleFactory ¶
func GetVehicleFactory(brand int) (VehicleFactory, error)
Click to show internal directories.
Click to hide internal directories.