1
0
Fork 0
mirror of https://github.com/tmrts/go-patterns.git synced 2025-04-03 13:13:34 +03:00
This commit is contained in:
Corey Daley 2017-06-20 16:49:13 +00:00 committed by GitHub
commit 8c66b5ccab

View file

@ -51,7 +51,7 @@ type Interface interface {
## Usage
```go
assembly := car.NewBuilder().Paint(car.RedColor)
assembly := car.NewBuilder().Color(car.RedColor)
familyCar := assembly.Wheels(car.SportsWheels).TopSpeed(50 * car.MPH).Build()
familyCar.Drive()