zfile

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(filename, content string) error

CreateFile 创建文件

func Exists

func Exists(path string) bool

Exists 检查文件或目录是否存在

func GoFmt

func GoFmt(filename string) error

GoFmt 格式化 Go 代码文件

func GoFmtDir

func GoFmtDir(dir string) error

GoFmtDir 格式化目录下的所有 Go 代码文件

func IsDirEmpty

func IsDirEmpty(path string) (bool, error)

func Mkdir

func Mkdir(path string) error

Mkdir 创建文件夹

func ParseFile

func ParseFile(file *multipart.FileHeader) (ext string, fileName string, size int64)

ParseFile 获取文件信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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