Skip to content

Golang Barcode Generation Package

License

Notifications You must be signed in to change notification settings

palevi67/barcode

 
 

Repository files navigation

barcode

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

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

GetBarcodeSVG(code, variant, w, h, color, showCode, inline)

About

Golang Barcode Generation Package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%