code

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	IsNumeric bool
	Type      SymbolType
	// contains filtered or unexported fields
}

Code defines a scanned code

func New

func New(input []byte) (*Code, error)

New returns a new Code struct from a scanned byte array

func (*Code) Bytes

func (code *Code) Bytes() []byte

Bytes is the byte array representation of the code

func (*Code) String

func (code *Code) String() string

String is the string representation of the code

type SymbolType

type SymbolType int

SymbolType describes the type of the scanned symbol

const (
	Code128 SymbolType = iota
	Code39
	Code2of5
	Codabar
	DataMatrix
	EAN8
	EAN13
	UPCA
	UPCE
	PDF417
	PostNet37
	Undefined
)

Jump to

Keyboard shortcuts

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