barcode

package
v0.0.0-...-a9922b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package barcode provide easy to use services to produce barcode images. Internally, it relies on https://github.com/boombuler/barcode

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BC

type BC struct {
	// contains filtered or unexported fields
}

BC is the BarCoder inmplementation. It uses https://github.com/boombuler/barcode

func New

func New() *BC

New BC constructor. SDefaults to QR200x200H

func (*BC) Encode

func (bc *BC) Encode(w io.Writer, txt string) error

Encode into a 'barcode' according to the specified encoding format.

func (*BC) SetFormat

func (bc *BC) SetFormat(enc common.EncodingFormat)

SetFormat sets the EncodingFormat to use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL