file

package
v0.0.0-...-411a92d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNotExist

func CheckNotExist(src string) bool

func CheckPermission

func CheckPermission(src string) bool

func GetDirName

func GetDirName() (string, error)

func GetExecPath

func GetExecPath() (string, error)

得到当前执行文件的的路径

func GetExt

func GetExt(fileName string) string

func GetSize

func GetSize(f multipart.File) (int, error)

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

func MkDir

func MkDir(src string) error

func MkRdir

func MkRdir(p string) (string, error)

在项目目录下创建相对目录 make relative directory

func MustOpen

func MustOpen(fileName, filePath string) (*os.File, error)

func Open

func Open(name string, flag int, perm os.FileMode) (*os.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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