entity

package
v0.0.0-...-ad32735 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Drawer

type Drawer interface {
	DrawFace(rectangle image.Rectangle, name string)

	SaveImage(path string) error
	// contains filtered or unexported methods
}

func NewDrawer

func NewDrawer(imagePath, fontPath string) Drawer

type DrawerImpl

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

func (*DrawerImpl) DrawFace

func (d *DrawerImpl) DrawFace(rectangle image.Rectangle, name string)

func (*DrawerImpl) SaveImage

func (d *DrawerImpl) SaveImage(path string) error

type Person

type Person struct {
	ID         int
	Name       string
	ImagesPath []string
}

func NewPerson

func NewPerson(id int, name string, imagesPath []string) *Person

Jump to

Keyboard shortcuts

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