xfile

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(content bytes.Buffer, name string) error

Create 创建文件

func Exist

func Exist(s string) bool

Exist 文件或目录是否存在

func Ext

func Ext(filename string) string

Ext 获取文件后缀名

func ImageType

func ImageType(read io.Reader) (string, error)

ImageType 图片类型

func Is

func Is(s string) bool

Is 文件是否存在

func IsDir

func IsDir(s string) bool

IsDir 目录是否存在

func Mkdir

func Mkdir(path string) error

Mkdir 创建目录

Types

This section is empty.

Jump to

Keyboard shortcuts

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