fileutils

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) (bool, error)

判断文件或文件夹是否存在

func GetCurrentDirectory

func GetCurrentDirectory() string

获取当前路径

func OpenProgramOrFile

func OpenProgramOrFile(argv []string) error

OpenProgramOrFile 启动程序

func ReadTextFromFile

func ReadTextFromFile(path string) (string, error)

ReadTextFromFile 从文本读取内容

func SaveBase64AsFile

func SaveBase64AsFile(base64Str *string, fileURL string) (err error)

保存base64为文件,一般用于保存图片

func SaveTextToFile

func SaveTextToFile(text, fileURL string) error

保存Text到文本

Types

This section is empty.

Jump to

Keyboard shortcuts

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