file

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

FileExists 检查文件是否存在

func FolderExists

func FolderExists(path string) bool

FolderExists 检查目录是否存在

func GetFileContent

func GetFileContent(filename string) (lines []string, err error)

GetFileContent 获取文件内容,主要处理原文数据

func ReadFileContent

func ReadFileContent(filename string) ([]byte, error)

ReadFileContent 读取文件内容,返回 []byte 数组,主要处理加密数据

func SaveFileContent

func SaveFileContent(content, filename string) error

SaveFileContent 保存文件内容,会直接覆盖

Types

This section is empty.

Jump to

Keyboard shortcuts

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