mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-23 05:06:01 +03:00
16 lines
183 B
Go
16 lines
183 B
Go
|
package main
|
||
|
|
||
|
type FamilyCar struct{}
|
||
|
|
||
|
func (*FamilyCar) NumDoors() int {
|
||
|
return 5
|
||
|
}
|
||
|
|
||
|
func (*FamilyCar) NumWheels() int {
|
||
|
return 4
|
||
|
}
|
||
|
|
||
|
func (*FamilyCar) NumSeats() int {
|
||
|
return 5
|
||
|
}
|