Go Interfaces

From NovaOrdis Knowledge Base
Revision as of 16:56, 30 March 2016 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

Overview

Interfaces are not types.

Can only structs be interfaces, or there are other things that can be interfaces?


Definition

type MyInterface interface {
     functionName1() return_type
     functionName2() return_type
     ...
}