fileutil

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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