file

package
v0.0.0-...-5dfeaac Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermission

func CheckPermission(src string) bool

func CopyDir

func CopyDir(src string, dst string) error

func CopyFile

func CopyFile(src, dst string) error

func GetExecFilePath

func GetExecFilePath() string

func GetExt

func GetExt(fileName string) string

func GetFolderSubFileName

func GetFolderSubFileName(path string) (fileNames []string, err error)

func GetRootDir

func GetRootDir() string

func GetSize

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

func IsExists

func IsExists(path string) (os.FileInfo, bool)

func IsNotExist

func IsNotExist(src string) bool

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

func MkDir

func MkDir(src string) error

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

type ReadLineFromEnd

type ReadLineFromEnd struct {
	// contains filtered or unexported fields
}

ReadLineFromEnd --

func NewReadLineFromEnd

func NewReadLineFromEnd(filename string) (rd *ReadLineFromEnd, err error)

NewReadLineFromEnd 从末尾读取文件内容

func (*ReadLineFromEnd) Close

func (c *ReadLineFromEnd) Close() (err error)

Close --

func (*ReadLineFromEnd) ReadLine

func (c *ReadLineFromEnd) ReadLine() (line []byte, err error)

ReadLine 结尾包含'\n'

Jump to

Keyboard shortcuts

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