xfile

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(path string) (f *os.File, err error)

CreateFile 根据文件路径(相对或绝对路径)创建文件,如果文件所在的文件夹不存在则自动创建

func Exists

func Exists(path string) bool

Exists 检查文件或路径是否存在

func GetAbs

func GetAbs(path string) (string, error)

GetAbs 获取文件绝对路径

func GetNameWithoutExt

func GetNameWithoutExt(filename string) string

func ReadFile

func ReadFile(path string) (f *os.File, err error)

ReadFile 根据文件路径(相对或绝对路径)创建文件,如果文件所在的文件夹不存在则自动创建

Types

This section is empty.

Jump to

Keyboard shortcuts

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