example

package
v0.0.0-...-8d22ec3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcretePrototype

type ConcretePrototype struct {
	Name string
}

具体原型类

func (*ConcretePrototype) Clone

func (p *ConcretePrototype) Clone() Prototype

Clone 创建一个ConcretePrototype类的克隆新实例

func (*ConcretePrototype) GetName

func (p *ConcretePrototype) GetName() string

返回具体原型的名称

type Prototype

type Prototype interface {
	GetName() string
	Clone() Prototype
}

原型接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL