qrutil

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

qrutil provides wrapper functions for https://github.com/skip2/go-qrcode

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts qrcode.QRCode) (*qrcode.QRCode, error)

New creates a new `*qrcode.QRCode` using `qrcode.QRCode` as the request parameter. `Content` is qrcode value. `ForegroundColor` and `BackgroundColor` are `color.Color`. `Level` is in [`qrcode.Low`,`Medium`,`High`,`Highest`].

func NewImage added in v1.3.0

func NewImage(opts qrcode.QRCode, size int) (image.Image, error)

func WritePNG added in v1.3.0

func WritePNG(filename string, opts qrcode.QRCode, pixels int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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