qrcode

package
v0.0.0-...-1da139f Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DataURISchemePng = "data:image/png;base64,"

DataURISchemePng png

Variables

This section is empty.

Functions

func Create

func Create(content string, width, height int) (string, error)

Create 生成二维码

func CreateFile

func CreateFile(content, fileName string, width, height int) error

CreateFile 生成二维码 文件

func CreateImage

func CreateImage(content string, width, height int) (image.Image, error)

CreateImage 生成二维码

func CreateWithLogo(content string, size int, logo []byte, percent int) (string, error)

CreateWithLogo 生成带logo的二维码

func CreateWithLogoImage

func CreateWithLogoImage(content string, size int, logo image.Image, percent int) (string, error)

CreateWithLogoImage 根据image生成带logo的二维码

func Parse

func Parse(fileBytes []byte) (string, error)

Parse 解析二维码

func ParseFile

func ParseFile(fileName string) (string, error)

ParseFile 解析二维码 文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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