qrcodeKit

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package qrcodeKit 二维码生成器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QrCodeParams

type QrCodeParams struct {
	Content    string // * 内容
	QrColor    string // 二维码颜色,默认黑色
	QrColorBg  string // 二维码背景颜色,默认白色
	QRWidth    uint8  // 指定每个qr块的宽度
	QrFillPath string // 二维码填充的图片
	LogoPath   string // 中间logo的位置 图片大小166*166
	SavePath   string // 保存的位置
}

func (QrCodeParams) CreateQrCodeBase64Str

func (q QrCodeParams) CreateQrCodeBase64Str() (string, error)

CreateQrCodeBase64Str 创建二维码返回base64字符串

  • @param content 内容
  • @param qrFillPath 二维码填充的图片
  • @param logoPath 中间logo的位置

func (QrCodeParams) CreateQrCodeFile

func (q QrCodeParams) CreateQrCodeFile() error

CreateQrCodeFile 创建二维码

  • @param content 内容
  • @param qrFillPath 二维码填充的图片
  • @param logoPath 中间logo的位置 图片大小166*166
  • @param savePath 保存的位置

Jump to

Keyboard shortcuts

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