Utils

package
v0.0.0-...-cb26cf0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *log.Logger

Functions

func ClearFolder

func ClearFolder(folderPath string) bool

func CopyFile

func CopyFile(src, dst string) (int64, error)

func CopyFileWithConfirm

func CopyFileWithConfirm(src, dst string) (bool, error)

func CopyFolder

func CopyFolder(src, dst string, addForce bool) (bool, error)

func CurrentTime

func CurrentTime() string

func DeleteFile

func DeleteFile(filePath string) bool

func DeleteFolder

func DeleteFolder(folderPath string) bool

func GUID

func GUID() string

func GetImageType

func GetImageType(base64Image string) (string, error)

func GetMd5String

func GetMd5String(s string) string

func InitLogger

func InitLogger()

func MakeFolder

func MakeFolder(sPath string) (bool, error)

func MakePath

func MakePath(sPath string) (string, error)

func MakeSoftLink4Folder

func MakeSoftLink4Folder(srcFolder, linkFolder string) (bool, error)

func MoveFile

func MoveFile(src, dst string) (int64, error)

func PathIsDir

func PathIsDir(filePath string) bool

func PathIsExist

func PathIsExist(filePath string) bool

func PathIsFile

func PathIsFile(filePath string) bool

func PathIsImage

func PathIsImage(filePath string) bool

func PathIsMarkdown

func PathIsMarkdown(filePath string) bool

func ReadImageAsBase64

func ReadImageAsBase64(imagePath string) (string, error)

func SaveBase64AsImage

func SaveBase64AsImage(imageContent, targetPath string) (bool, error)

func Try2FindSpFile

func Try2FindSpFile(siteFolderPath string) (string, error)

func UserConfirm

func UserConfirm(msg string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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