Skip to content

didasy/gobarcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobarcode

A barcode and qr-code reader using libzbar.


GoDoc

You need to install go get github.com/galaktor/gostwriter, libzbar-dev and zbar-tools before using this package.

Example


package main

import (
	"../."
	"../keyboard"
)

func main() {
	strChan := make(chan string)
	go gobarcode.Run(strChan)

	kb, err := keyboard.New("scan", 10)
	if err != nil {
		panic(err)
	}
	defer kb.Destroy()

	for {
		str := <-strChan
		err = kb.Type(str)
		if err != nil {
			panic(err)
		}
	}
}

About

A barcode and qr-code reader using libzbar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages