qrcode

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(text string, opts ...*Options) (image.Image, error)

func WriteFile

func WriteFile(filename string, text string, opts ...*Options) error

Types

type Options

type Options struct {
	Size            int
	BackgroundColor color.Color
	ForegroundColor color.Color
	Level           qrcode.RecoveryLevel
	LogoImage       image.Image
	LogoPoint       image.Point
	LogoResize      struct {
		Width  int
		Height int
	}
}

func DefaultOptions

func DefaultOptions() *Options

Jump to

Keyboard shortcuts

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