qrcode

package
v0.0.0-...-298ae05 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxWidth int = 360 // 二维码图片的最大宽度
	MaxLang  int = 800 // 每个二维码图片的最大字节数
)

Variables

This section is empty.

Functions

func NewQrCode

func NewQrCode(content string, size int, path string) error

func NewQrEncode

func NewQrEncode(content []byte, buf io.Writer) error

func QrImg

func QrImg(content string, size int) (img image.Image)

Types

type Code

type Code struct {
	// contains filtered or unexported fields
}

func (*Code) Write

func (c *Code) Write(p []byte) (n int, err error)

实现 io.Writer 接口

Jump to

Keyboard shortcuts

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