MCPcopy Create free account
hub / github.com/boombuler/barcode / Encode

Function Encode

code93/encoder.go:112–114  ·  view source on GitHub ↗

Encode returns a code93 barcode for the given content if includeChecksum is set to true, two checksum characters are calculated and added to the content

(content string, includeChecksum bool, fullASCIIMode bool)

Source from the content-addressed store, hash-verified

110// Encode returns a code93 barcode for the given content
111// if includeChecksum is set to true, two checksum characters are calculated and added to the content
112func Encode(content string, includeChecksum bool, fullASCIIMode bool) (barcode.Barcode, error) {
113 return EncodeWithColor(content, includeChecksum, fullASCIIMode, barcode.ColorScheme16)
114}
115
116func getChecksum(content string, maxWeight int) rune {
117 weight := 1

Callers 1

doTestFunction · 0.70

Calls 1

EncodeWithColorFunction · 0.70

Tested by 1

doTestFunction · 0.56