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…
Category: Tech
Abstract Factory 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: Abstract Factory Design Pattern is…
Read a large file Word by Word in Go(Golang)
When it comes to reading large files, obviously we don’t want to load the entire file in memory. bufio package in golang comes to the rescue when reading large files in Golang….
Read a large file Line by Line in Go (Golang)
When it comes to reading large files, obviously we don’t want to load the entire file in memory. bufio package in golang comes to the rescue when reading large files. Let’s say…
Runtime Polymorphism in Go (Golang)
RunTime Polymorphism means that a call is resolved at runtime. It is achieved in GO using interfaces. Let’s understand it with an example. Different countries have different ways of calculating the tax….
Compile Time Polymorphism in Go (Golang)
In compile-time polymorphism, the call is resolved during compile time by the compiler. Some of the forms for compile-time polymorphism are Method/Function Overloading: more than one method/function exists with the same name but…
OOP: Polymorphism in Go Complete Guide
Before understanding, polymorphism lets first understand what polymorphism is. “Same name many forms” In the programming context, we also come across several use cases in which behavior is similar across different context….
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…