helper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFileTo

func CopyFileTo(srcPath, destPath string) error

func DecodeByteToJpeg

func DecodeByteToJpeg(b []byte) (img image.Image, err error)

DecodeByteToJpeg .

func DecodeByteToPng

func DecodeByteToPng(b []byte) (img image.Image, err error)

DecodeByteToPng .

func EncodeJPEGToBase64

func EncodeJPEGToBase64(img image.Image, quality int) string

EncodeJPEGToBase64 .

func EncodeJPEGToByte

func EncodeJPEGToByte(img image.Image, quality int) (ret []byte)

EncodeJPEGToByte .

func EncodePNGToBase64

func EncodePNGToBase64(img image.Image) string

EncodePNGToBase64 .

func EncodePNGToByte

func EncodePNGToByte(img image.Image) (ret []byte)

EncodePNGToByte .

func GetPWD

func GetPWD() string

GetPWD .

func LoadFont

func LoadFont(p string) (*truetype.Font, error)

func LoadJpeg

func LoadJpeg(p string) (image.Image, error)

func LoadPNG

func LoadPNG(p string) (image.Image, error)

func StringToMD5

func StringToMD5(src string) string

StringToMD5 MD5

Types

This section is empty.

Jump to

Keyboard shortcuts

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