pkg

package
v0.0.0-...-05962f3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 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 BaseParts

type BaseParts struct {
}

基础零件

func (*BaseParts) GetPrice

func (p *BaseParts) GetPrice() float32

获取基础零件手机价格

type IPhone

type IPhone struct {
	Phone Phone
}

func (*IPhone) GetPrice

func (c *IPhone) GetPrice() float32

获取IPhone价格

type Phone

type Phone interface {
	GetPrice() float32
}

type Xiaomi

type Xiaomi struct {
	Phone Phone
}

func (*Xiaomi) GetPrice

func (c *Xiaomi) GetPrice() float32

小米手机的价格

Jump to

Keyboard shortcuts

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