In GO, interfaces is a way to identify the behavior of an object. An interface is created by using the “type” word, followed by a name and the keyword interface. An interface is specified as two things.
- A set of methods.
- Also it is referred as type.