code

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCannotEncodePNG        = errors.New("cannot encode png")
	ErrCannotScaleBarcode     = errors.New("cannot scale barcode")
	ErrCannotEncodeQRcode     = errors.New("cannot encode qr code")
	ErrCannotEncodeDataMatrix = errors.New("cannot encode data matrix")
)

Functions

This section is empty.

Types

type Code added in v2.4.0

type Code struct{}

func New

func New() *Code

New create a Code (Singleton).

func (*Code) GenBar added in v2.4.0

func (c *Code) GenBar(code string, _ *entity.Cell, prop *props.Barcode) (*entity.Image, error)

GenBar is responsible to generate a barcode byte array.

func (*Code) GenDataMatrix added in v2.4.0

func (c *Code) GenDataMatrix(code string) (*entity.Image, error)

GenDataMatrix is responsible to generate a data matrix byte array.

func (*Code) GenQr added in v2.4.0

func (c *Code) GenQr(code string) (*entity.Image, error)

GenQr is responsible to generate a qr code byte array.

Jump to

Keyboard shortcuts

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