checksum

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CDV     = checksum{Calculator: csCDV{}, Direction: dirAppend}
	EAN8    = checksum{Calculator: csEAN8{}, Direction: dirAppend}
	CvtEAN8 = checksum{Calculator: csCvtEAN8{}, Direction: dirPrepend}
)

Functions

This section is empty.

Types

type Calculator

type Calculator interface {
	Calculate(string) uint8
}

type Checksum

type Checksum interface {
	Calculator
	Decorate(string) string
	Undecorate(string) string
	IsValid(string) bool
}

Jump to

Keyboard shortcuts

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