qrutil

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 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

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

func WritePNG

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