file

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package file 文件操作辅助函数.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirIfNotExists

func CreateDirIfNotExists(dirname string, perm ...os.FileMode) error

CreateDirIfNotExists 创建目录(若不存在).

func Exists

func Exists(fileToCheck string) bool

Exists 判断文件是否存在.

func FileNameWithoutExtension

func FileNameWithoutExtension(fileName string) string

FileNameWithoutExtension 去除文件扩展名.

func Put

func Put(data []byte, to string) error

Put 将数据存入文件.

Types

This section is empty.

Jump to

Keyboard shortcuts

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