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: This is a structural design…
Tag: golang
Different ways of iterating over a map in Go (Golang)
Range operator can be used to iterate over a map in Go Let’s define a map first Iterating over all keys and values Output: Iterating over only keys Output: Iterating over only…
Go: Different ways of iterating over an Array and Slice
Go provides many different ways of iterating over an array. All examples below are also applicable to slice. Let’s define an array of letters first Using the range operator With index and…
Prototype 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: It is a creational design…
State Design pattern in Go
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: State design pattern is a…
Builder Pattern in GoLang
Definition: Builder Pattern is a creational design pattern used for constructing complex objects. Below is the UML diagram. Note: Interested in understanding how all other design patterns can be implemented in GO….
OOP: Inheritance in GOLANG complete guide
We will try to explain inheritance in GO using comparisons with inheritance in JAVA. The first thing we want to mention here is that GOLANG doesn’t have keywords such as “Extends” and…
Inheritance in GO using interface
This post describes inheritance using interface. Do visit our Inheritance in Go Complete Guide post for full reference Go supports inheritance by embedding struct or using interface. There are different ways of…
Inheritance in GO using struct (Embedding)
This post desicribes inheritance using struct only. Do visit our Inheritance in Go Complete Guide post for full reference Go supports inheritance by embedding struct or using interface. There are different ways…
New Relic Example in GoLang with Deep Instrumentation
It is easy to integrate newrelic in GoLang. We just need one of the middleware to use the newrelic. Application. For eg in GIN framework of GO we can do something like…