Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 467 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 467 Bytes

Design pattern implement with golang

Explore

All patterns are implemented with examples, for OSX/Linux users simplely run make command as below

# run factory method pattern example
make factory

# run singleton pattern example
make singleton

If you don't want to use make, you can run as below

# run factory method pattern example
go run main.go -pattern factory

# run singleton pattern example
go run main.go -pattern factory