Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectAdaptee ¶
type ObjectAdaptee struct {
}
定义需要被适配的类
func (*ObjectAdaptee) SpecificExecute ¶
func (b *ObjectAdaptee) SpecificExecute()
定义了用于执行的方法SpecificExecute()
type ObjectAdapter ¶
type ObjectAdapter struct {
Adaptee ObjectAdaptee
}
Adapter 是新接口 Target 的适配器,通过关联 Adaptee 类来实现
Click to show internal directories.
Click to hide internal directories.