#Pattern
4 articles
03 Learn About Route Pattern
Use of Named Parameter
The Pattern Router have a have a Pattern to handle http or web application for every endpoint has a parameter pattern in a URL and is often called a Named Parameter. Named Parameter is a pattern for creating parameters using names. Each parameter name begins with a colon :
followed by the parameter name. For example, an example like the one below.
Get to know the Repository Pattern in Golang
In the book Domain-Driven Design, Eric Evans explains that
Repository is a mechanism for encapsulating storage, retrieval and search behaviour, which emulates a collection of objects
How to Implement Golang's Singleton Design Pattern
Basic Definition
Singleton is a software design standard. This standard guarantees the existence of only one instance of a class, while maintaining a global point of access to its objects.
How to Implement Concurrency Pattern Fan In and Fan Out on Golang
Channels in Go
Creating concurrent programs in Go has a unique approach to handle and to implementation when we want share memory to communication. The approach is to share memory by communicating, instead of communicating by sharing memory which is not allowed in Go. This approach can be done by using channels that can be used by goroutines to communicate with each other.