factory

package
v0.0.0-...-ee6b5e2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

工厂方法。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KFC

type KFC struct {
}

func (*KFC) GetFood

func (k *KFC) GetFood()

type MCD

type MCD struct {
}

func (*MCD) GetFood

func (m *MCD) GetFood()

type Restaurant

type Restaurant interface {
	GetFood()
}

func NewRestaurant

func NewRestaurant(name string) Restaurant

Jump to

Keyboard shortcuts

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