Golang Barcode Generation Package
This package generates barcodes as SVG / or File. You can Encode the File Outputs with image/* *.Encode(w, f)
See example
folder.
Supported Barcodes:
- C39
- C39+
- C39E
- C39E+
- C93
- S25
- S25+
- I25
- I25+
- C128 // auto mode
- C128A
- C128B
- C128C
- EAN2
- EAN5
- EAN8
- EAN13
- UPCA
- UPCE
- MSI
- MSI+
- POSTNET
- PLANET
- RMS4CC
- KIX
code
: {string} Your Codevariant
: {string} one of Supported Barcodesw
: {int} barcode with * w multiplierh
: {int} height of the barcode in pxcolor
: {string} color as CSS compatible string valueshowCode
: {bool} display code under BARCODEinline
: {bool} removes XML/SVG headers from output
SVG as string
GetBarcodeSVG(code, variant, w, h, color, showCode, inline)