flyweight

package
v0.0.0-...-7dcde51 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcreteImageFlyweight

type ConcreteImageFlyweight struct {
	// contains filtered or unexported fields
}

func (*ConcreteImageFlyweight) Data

func (p *ConcreteImageFlyweight) Data() string

type ImageFlyweight

type ImageFlyweight interface {
	Data() string
}

func NewImageFlyweight

func NewImageFlyweight(filename string) ImageFlyweight

type ImageFlyweightFactory

type ImageFlyweightFactory struct {
	// contains filtered or unexported fields
}

func GetImageFlyweightFactory

func GetImageFlyweightFactory() *ImageFlyweightFactory

func (*ImageFlyweightFactory) Get

func (p *ImageFlyweightFactory) Get(filename string) ImageFlyweight

type ImageViewer

type ImageViewer struct {
	ImageFlyweight
}

func NewImageViewer

func NewImageViewer(filename string) *ImageViewer

func (*ImageViewer) Display

func (p *ImageViewer) Display()

Jump to

Keyboard shortcuts

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