Note: Interested in understanding how all other design patterns can be implemented in GO. Please see this full reference – All Design Patterns in Go (Golang) Introduction: Mediator design pattern is a…
Blog
Stack in Golang
Introduction A simple stack can be implemented in GO using container/list package slice A stack will have below operations: Push Pop Front Size Empty List Implementation Output: Slice Implementation Output:
Queue in Golang
Introduction A simple queue can be implemented in GO using container/list package slice A queue will have below operations: Enqueue Dequeue Front Size Empty List Implementation Output: Slice Implementation Output:
Null Object Design Pattern in Go (Golang)
Note: Interested in understanding how all other design patterns can be implemented in GO. Please see this full reference – All Design Patterns in Go (Golang) Introduction: Null Object Design Pattern is…
Singleton Design Pattern in Go (Golang)
Note: Interested in understanding how all other design patterns can be implemented in GO. Please see this full reference – All Design Patterns in Go (Golang) Introduction: Singleton Design Pattern is a…
Encapsulation in Go (Golang)
Golang provides encapsulation at the package level. Go doesn’t have any public, private or protected keyword. The only mechanism to control the visibility is using the capitalized and non-capitalized formats Capitalized Identifiers…
Bridge Design Pattern in Go (Golang)
Note: Interested in understanding how all other design patterns can be implemented in GO. Please see this full reference – All Design Patterns in Go (Golang) Introduction: Bridge design pattern is a…
Proxy Design Pattern in Go (Golang)
Note: Interested in understanding how all other design patterns can be implemented in GO. Please see this full reference – All Design Patterns in Go (Golang) Introduction: Proxy Design Pattern is a…
Command Design Pattern in Go (Golang)
Note: Interested in understanding how all other design patterns can be implemented in GO. Please see this full reference – https://golangbyexample.com/all-design-patterns-golang/ Introduction: Command Design Pattern is a behavioral design pattern. It suggests…
Facade Design Pattern in Go (Golang)
Note: Interested in understanding how all other design patterns can be implemented in GO. Please see this full reference – All Design Patterns in Go (Golang) Definition: Facade Pattern is classified as…