proxy

package
v0.0.0-...-54da96c Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image interface {
	Display() string
}

Image 定義圖像的接口

type ProxyImage

type ProxyImage struct {
	FileName string
	// contains filtered or unexported fields
}

ProxyImage 是圖像的代理,控制對 RealImage 的訪問

func NewProxyImage

func NewProxyImage(fileName string) *ProxyImage

func (*ProxyImage) Display

func (pi *ProxyImage) Display() string

type RealImage

type RealImage struct {
	FileName string
}

RealImage 是真實的圖像對象

func NewRealImage

func NewRealImage(fileName string) *RealImage

NewRealImage 用於創建 RealImage 對象

func (*RealImage) Display

func (ri *RealImage) Display() string

Jump to

Keyboard shortcuts

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