Documentation ¶
Index ¶
- func Exist(filename string) bool
- func FileToBase64String(path string) string
- func FilepathToBase64String(filepath string) string
- func GetFileModTime(path string) int64
- func PathExists(path string) (bool, error)
- func Read(file_path string) string
- func ReadFileListFromDir(path string) ([]fs.FileInfo, int)
- func ReadLine(fileName string, handler func(string)) error
- func ReadUrl(file_url string) string
- func WriteToBinaryFile(filename string, body io.Reader) int64
- func WriteToFile(body, path string) bool
- func WriteUrlToFile(url, path string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilepathToBase64String ¶ added in v0.0.6
文件转base64
func ReadFileListFromDir ¶ added in v0.0.6
读取文件夹下所有文件
func WriteToFile ¶
func WriteUrlToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.