Documentation
¶
Index ¶
- Constants
- Variables
- func CopyFile(src, dst string) (int64, error)
- func CreateFile(filePath string) bool
- func CurrentTime() string
- func CurrentUser() string
- func DeleteFile(filePath string) bool
- func GUID() string
- func GetImageType(base64Image string) (string, error)
- func GetImageWithSameName(filePath string) (string, error)
- func GetImageWithSameName2(folderPath, fileName string) (string, error)
- func GetImageWithSameTitle(fileFolder, fileTitle string) (string, error)
- func GetMd5String(s string) string
- func ImageTooBig(titleImagePath string) (bool, error)
- func InitLogger()
- func IsGuid(id string) bool
- func MakeFolder(sPath string) (bool, error)
- func MakePath(sPath string) (string, error)
- func MakeSoftLink4Folder(srcFolder, linkFolder string) (bool, error)
- func MoveFile(src, dst string) (int64, error)
- func PathIsDir(filePath string) bool
- func PathIsExist(filePath string) bool
- func PathIsFile(filePath string) bool
- func PathIsImage(filePath string) bool
- func PathIsMarkdown(filePath string) bool
- func ReadImageAsBase64(imagePath string) (string, error)
- func SaveBase64AsImage(imageContent, targetPath string) (bool, error)
Constants ¶
View Source
const MAXTITLEIMAGESIZE int64 = 30720
Variables ¶
View Source
var Logger *log.Logger
Functions ¶
func CreateFile ¶
func CurrentTime ¶
func CurrentTime() string
func CurrentUser ¶
func CurrentUser() string
func DeleteFile ¶
func GetImageType ¶
func GetImageWithSameName ¶
func GetImageWithSameName2 ¶
func GetImageWithSameTitle ¶
func GetMd5String ¶
func ImageTooBig ¶
func InitLogger ¶
func InitLogger()
func MakeFolder ¶
func MakeSoftLink4Folder ¶
func PathIsExist ¶
func PathIsFile ¶
func PathIsImage ¶
func PathIsMarkdown ¶
func ReadImageAsBase64 ¶
func SaveBase64AsImage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.