file

package
v0.0.0-...-80248e1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(path string) error

CreateDirectory 创建目录

path: 目录路径

func NewOptions

func NewOptions() *options

NewOptions 创建选项

func PathFileExists

func PathFileExists(pathFile string) bool

PathFileExists 判断文件是否存在

pathFile: 文件路径
return: 存在-true, 不存在-false

func WriteFile

func WriteFile(pathFile string, data []byte, opts *options) error

WriteFile 写文件,可选择覆盖或者追加

pathFile: 文件路径
data: 写入的数据
opts: 覆盖写入, 追加写入, 默认覆盖写入

Types

This section is empty.

Jump to

Keyboard shortcuts

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