interfaces are custom types that define a set of function signatures. By design, interfaces are considered to be tools that make code clean, short and provide a good API between packages, servers and clients. Many times Go interfaces are used to force encapsulation and allow for a versatile, clean and short code base.

3m read timeFrom medium.com
Post cover image
Table of contents
The Way of Interface in GoImplementing an Interface
1 Comment

Sort: