BaseInterface 基础 Interface 实现 提供默认的空实现,子类可以选择性覆盖
| 46 | // BaseInterface 基础 Interface 实现 |
| 47 | // 提供默认的空实现,子类可以选择性覆盖 |
| 48 | type BaseInterface struct { |
| 49 | name string |
| 50 | typ InterfaceType |
| 51 | } |
| 52 | |
| 53 | // NewBaseInterface 创建基础 Interface |
| 54 | func NewBaseInterface(name string, typ InterfaceType) *BaseInterface { |
nothing calls this directly
no outgoing calls
no test coverage detected