huencode

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BarCodeEncode

func BarCodeEncode(content string, width, height int) (pngb []byte, err error)

生成条码PNG bese64 bytes 前端使用 <img src="data:image/png;base64," + {string(PNG bytes)}/>

func Base64Decode

func Base64Decode(str string, salt ...string) (string, error)

*

  • base64解密

func Base64Encode

func Base64Encode(str string, salt ...string) string

*

  • base64加密

func Base64ImgDataToFile added in v1.0.5

func Base64ImgDataToFile(filepath string, base64data string)

func GetAllSerial added in v1.0.5

func GetAllSerial() (SerialList []string)

func GetBaseBoardID

func GetBaseBoardID() string

GetBaseBoardID 获取主板的id

func GetDiskDriveSN added in v1.0.5

func GetDiskDriveSN() string

GetDiskDriveSN 获取硬盘SN

func QRCodeEncode

func QRCodeEncode(content string, level qrcode.RecoveryLevel, size int) (pngb []byte, err error)

生成二维码PNG bese64 bytes 前端使用 <img src="data:image/png;base64," + {string(PNG bytes)}/>

Types

This section is empty.

Jump to

Keyboard shortcuts

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