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.
1 Comment
Sort: