go-patterns
go-patterns copied to clipboard
Curated list of Go design patterns, recipes and idioms
Because the type of p at line 29 is"*chan *Object" , so at line 32, 35 should use *p instead of p directly.
Add install and build instructions to README for people not familiar with gitbook-cli
There are parts that you show in how to use the pattern that aren't in the example of creating it. i.e. NewBuilder(), Paint(..), etc...
We've implemented this for scaling worker base on parent channel traffic
An example of the flyweight pattern in Golang is given here: http://www.hydrogen18.com/blog/golang-embedding.html