go-patterns
go-patterns copied to clipboard
Curated list of Go design patterns, recipes and idioms
Multi packages in same folder causes compiler error. These packages can be moved to separate sub-folders.
An small peer connection router example implementation for read/write mutex
Added abstract, state and complex pattern examples under the appropriate folders already defined.
Use the correct interface method in Builder pattern example
Factory Method Pattern in Go is function which returns an interface (something what is implementing an interface)... **that's all**. This means you should not think about this pattern and use...
I think this makes the pubsub pattern more fleshed out and easier to use.