Documentation ¶ Index ¶ func MkdirAll(path string) (err error) func NewFile(name string, isAppend ...bool) (file *os.File, err error) func ReadFile(name string) (body []byte, err error) func RemoveFile(name string) (err error) func WriteFile(name string, body []byte, isAppend ...bool) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func MkdirAll ¶ func MkdirAll(path string) (err error) MkdirAll 创建所有层级目录 func NewFile ¶ func NewFile(name string, isAppend ...bool) (file *os.File, err error) NewFile 创建 *os.File func ReadFile ¶ func ReadFile(name string) (body []byte, err error) ReadFile 读取文件 func RemoveFile ¶ func RemoveFile(name string) (err error) RemoveFile 删除文件 func WriteFile ¶ func WriteFile(name string, body []byte, isAppend ...bool) (err error) WriteFile 写入文件 Types ¶ This section is empty. Source Files ¶ View all Source files fileutil.go Click to show internal directories. Click to hide internal directories.