Barcode Reader CLI
Integration
Go
package main import ( "os/exec" "fmt" "runtime" "bytes" "os" ) func main() { 	iswindows = runtime goos == "windows" 	exe, shell, flag = " /barcodereadercli", "sh", " c" 	if iswindows { 	 exe, shell, flag = " \\\barcodereadercli", "cmd exe", "/c" 	} 	args = \[]string{ 	 exe, 	 " type=code128", 	 "https //wabr inliteresearch com/sampleimages/1d pdf", 	 "@ /brcli example config" // additional options and sources in configuration file 	 } 	cmd = "" 	for , s = range args {cmd = cmd + s + " "} 	 proc = exec command(shell, flag, cmd) 	var stdout bytes buffer 	var stderr bytes buffer 	proc stdout = \&stdout 	proc stderr = \&stderr 	proc run() 	 	if stdout len() > 0 { print("stdout \n" + stdout string())} if stderr len() > 0 { print("stderr \n" + stderr string())} } brcli example config # silent type=code39 \# image from url https //wabr inliteresearch com/sampleimages/1d pdf \# image from local folder /images/test tif