barcode

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package barcode provides named barcode constructors over Paper's component model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAutoCode128Row

func NewAutoCode128Row(value string, barcodeProps ...props.Barcode) core.Row

NewAutoCode128Row encodes value as a Code 128 barcode in a row whose height follows the code itself.

func NewAutoDataMatrixRow

func NewAutoDataMatrixRow(value string, rectProps ...props.Rect) core.Row

NewAutoDataMatrixRow encodes value as a Data Matrix code in a row whose height follows the code itself.

func NewAutoEAN13Row

func NewAutoEAN13Row(value string, barcodeProps ...props.Barcode) core.Row

NewAutoEAN13Row encodes value as a EAN-13 barcode in a row whose height follows the code itself.

func NewAutoQRRow

func NewAutoQRRow(value string, rectProps ...props.Rect) core.Row

NewAutoQRRow encodes value as a QR code in a row whose height follows the code itself.

func NewCode128

func NewCode128(value string, barcodeProps ...props.Barcode) core.Component

NewCode128 encodes value as a Code 128 barcode component.

func NewCode128Col

func NewCode128Col(size int, value string, barcodeProps ...props.Barcode) core.Col

NewCode128Col encodes value as a Code 128 barcode in a column spanning size grid units.

func NewCode128Row

func NewCode128Row(height float64, value string, barcodeProps ...props.Barcode) core.Row

NewCode128Row encodes value as a Code 128 barcode in a row of the given height in millimeters.

func NewDataMatrix

func NewDataMatrix(value string, rectProps ...props.Rect) core.Component

NewDataMatrix encodes value as a Data Matrix code component.

func NewDataMatrixCol

func NewDataMatrixCol(size int, value string, rectProps ...props.Rect) core.Col

NewDataMatrixCol encodes value as a Data Matrix code in a column spanning size grid units.

func NewDataMatrixRow

func NewDataMatrixRow(height float64, value string, rectProps ...props.Rect) core.Row

NewDataMatrixRow encodes value as a Data Matrix code in a row of the given height in millimeters.

func NewEAN13

func NewEAN13(value string, barcodeProps ...props.Barcode) core.Component

NewEAN13 encodes value as a EAN-13 barcode component.

func NewEAN13Col

func NewEAN13Col(size int, value string, barcodeProps ...props.Barcode) core.Col

NewEAN13Col encodes value as a EAN-13 barcode in a column spanning size grid units.

func NewEAN13Row

func NewEAN13Row(height float64, value string, barcodeProps ...props.Barcode) core.Row

NewEAN13Row encodes value as a EAN-13 barcode in a row of the given height in millimeters.

func NewQR

func NewQR(value string, rectProps ...props.Rect) core.Component

NewQR encodes value as a QR code component.

func NewQRCol

func NewQRCol(size int, value string, rectProps ...props.Rect) core.Col

NewQRCol encodes value as a QR code in a column spanning size grid units.

func NewQRRow

func NewQRRow(height float64, value string, rectProps ...props.Rect) core.Row

NewQRRow encodes value as a QR code in a row of the given height in millimeters.

Types

type Type

type Type = consts.BarcodeType

Type is the barcode symbology to encode with.

const (
	Code128 Type = consts.BarcodeCode128
	EAN13   Type = consts.BarcodeEAN
)

The linear symbologies this package can encode.

Jump to

Keyboard shortcuts

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