DEV Community

Cover image for Interfaces in Go
Donald Feury
Donald Feury

Posted on β€’ Edited on β€’ Originally published at donaldfeury.xyz

1 2

Interfaces in Go

Despite not having Object Oriented Programming (OOP) language features, Go does have interfaces.

Interfaces allow you to interchange what data types you are passing as arguments to a function, as long as that type has the required methods.

Interfaces in Go are different compared to, say, C# or Java, in that you don't have to explicitly state you are implementing an interface, which is pretty cool.

Check it out and let me know what ya'll think. Any feedback is greatly appreciated.

If you liked it and want to know when I post more, be sure to subscribe and thank ya'll again for your time!

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more