actualCombat

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canon

type Canon struct {
}

佳能打印机

func (*Canon) PrintFile

func (p *Canon) PrintFile()

打印文件

type Computer

type Computer interface {
	Print()
	SetPrinter(Printer)
}

电脑接口

type Lenovo

type Lenovo struct {
}

联想打印机

func (*Lenovo) PrintFile

func (p *Lenovo) PrintFile()

打印文件

type Mac

type Mac struct {
	Printer Printer
}

Mac系统

func (*Mac) Print

func (m *Mac) Print()

打印

func (*Mac) SetPrinter

func (m *Mac) SetPrinter(p Printer)

设置打印机

type Printer

type Printer interface {
	PrintFile()
}

打印机接口

type Windows

type Windows struct {
	Printer Printer
}

Windows系统

func (*Windows) Print

func (w *Windows) Print()

打印

func (*Windows) SetPrinter

func (w *Windows) SetPrinter(p Printer)

设置打印机

Jump to

Keyboard shortcuts

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