Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircleAdapter ¶
type CircleAdapter struct {
LegacyCircle *LegacyCircle
}
CircleAdapter 是適配器,將 LegacyCircle 的接口轉換為 Shape 接口
func (*CircleAdapter) Draw ¶
func (ca *CircleAdapter) Draw() string
type LegacyCircle ¶
type LegacyCircle struct{}
LegacyCircle 是舊版的圓形類,具有不兼容的新方法
func (*LegacyCircle) OldDraw ¶
func (lc *LegacyCircle) OldDraw() string
Click to show internal directories.
Click to hide internal directories.