qrcode

command module
v0.0.0-...-4182e66 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

QR Code Generator

License Minimum Go Version Go Documentation Build Status Coverage Status

Installation
$ go get -u github.com/YuriyLisovskiy/qrcode/qr
Usage

Import package with

import "github.com/YuriyLisovskiy/qrcode/qr"
// Text to encode.
const TEXT =
`
Nibh. Pulvinar enim porttitor tellus litora
nec vestibulum sit montes class, euismod odio
litora venenatis suscipit mi cras arcu a
dictum risus vestibulum parturient pellentesque
sociosqu vel rutrum a eros.
`

// Create an instance of Generator.
qrGen := qr.Generator{}

// Encode the text.
qrGen = qrGen.EncodeText(TEXT)

// Create an image of generated qr code.
qrGen.DrawImage("path/to/qr.png", 4, 500)
Result image:

Run
  • tests: make test
  • demo: make demo
Author
License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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