Welcome To Golang By Example

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. It is better for such behavior to be represented by the same name. This is where polymorphism comes into the picture in the programming context. From a programming perspective, there are two kinds of polymorphism possible-

Let’s look at what type of Compile and Runtime Polymorphism is possible in GO

Conclusion: 

If you have read the above two articles then you will find out that compile-time polymorphism is not possible in GoLang. It only has Run-Time Polymorphism. Run-Time polymorphism is achieved in GO using interfaces.