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)
| 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 |
| 112 | func Encode(content string, includeChecksum bool, fullASCIIMode bool) (barcode.Barcode, error) { |
| 113 | return EncodeWithColor(content, includeChecksum, fullASCIIMode, barcode.ColorScheme16) |
| 114 | } |
| 115 | |
| 116 | func getChecksum(content string, maxWeight int) rune { |
| 117 | weight := 1 |