https://github.com/juliankoehn/barcode
Golang Barcode Generation Package
https://github.com/juliankoehn/barcode
barcode go golang lightweight package
Last synced: about 2 months ago
JSON representation
Golang Barcode Generation Package
- Host: GitHub
- URL: https://github.com/juliankoehn/barcode
- Owner: juliankoehn
- License: mit
- Created: 2020-04-16T12:31:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-18T17:34:00.000Z (about 5 years ago)
- Last Synced: 2024-06-21T03:15:45.188Z (11 months ago)
- Topics: barcode, go, golang, lightweight, package
- Language: Go
- Size: 64.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# barcode
Golang Barcode Generation PackageThis 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
## Call:* `code`: {string} Your Code
* `variant`: {string} one of Supported Barcodes
* `w`: {int} barcode with * w multiplier
* `h`: {int} height of the barcode in px
* `color`: {string} color as CSS compatible string value
* `showCode`: {bool} display code under BARCODE
* `inline`: {bool} removes XML/SVG headers from output### Returns
SVG as `string````go
GetBarcodeSVG(code, variant, w, h, color, showCode, inline)
```