qrcodeKit

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 5 Imported by: 0

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