tools

package
v0.0.0-...-6fbc30b Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateSHA1

func CalculateSHA1(filePath string) (string, error)

CalculateSHA1 Calculate file SHA1 checksum

func CreateFile

func CreateFile(filePath string, data []byte) error

func DownloadFile

func DownloadFile(filePath string, url string, recover bool, showBar bool) error

func FileExists

func FileExists(filename string) bool

FileExists check file or folder exists

func Get

func Get(url string) ([]byte, error)

func Image2Base64

func Image2Base64(img image.Image) (string, error)

func IsResponseError

func IsResponseError(body []byte) bool

func MakeParentDirs

func MakeParentDirs(filePath string) error

func TryDownloadClient

func TryDownloadClient(folderPath string, fileName string, info *model.ClientInfo) (bool, error)

TryDownloadClient return need-recover(bool)

func UnzipSpecEntity

func UnzipSpecEntity(src string, specPath string, dest string) error

UnzipSpecEntity extract specific draw in jar to dest directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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