Documentation ¶
Index ¶
- func CheckPermission(src string) bool
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func GetExecFilePath() string
- func GetExt(fileName string) string
- func GetFolderSubFileName(path string) (fileNames []string, err error)
- func GetRootDir() string
- func GetSize(f multipart.File) (int, error)
- func IsExists(path string) (os.FileInfo, bool)
- func IsNotExist(src string) bool
- func IsNotExistMkDir(src string) error
- func MkDir(src string) error
- func MustOpen(fileName, filePath string) (*os.File, error)
- func Open(name string, flag int, perm os.FileMode) (*os.File, error)
- type ReadLineFromEnd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermission ¶
func GetExecFilePath ¶
func GetExecFilePath() string
func GetFolderSubFileName ¶
func GetRootDir ¶
func GetRootDir() string
func IsNotExist ¶
func IsNotExistMkDir ¶
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) ReadLine ¶
func (c *ReadLineFromEnd) ReadLine() (line []byte, err error)
ReadLine 结尾包含'\n'
Click to show internal directories.
Click to hide internal directories.