Documentation ¶
Index ¶
- func CheckNotExist(src string) bool
- func CheckPermission(src string) bool
- func CreateFile(path string) error
- func Exists(path string) bool
- func GetExt(fileName string) string
- func GetSize(f multipart.File) (int, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsNotExistCreateFile(src string) error
- 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)
- func RMDir(src string) error
- func ReadFullFile(path string) []byte
- type ReadLineFromEnd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPermission ¶
CheckPermission check if the file has permission
func CreateFile ¶
func IsNotExistCreateFile ¶
IsNotExistMkDir create a directory if it does not exist
func IsNotExistMkDir ¶
IsNotExistMkDir create a directory if it does not exist
func ReadFullFile ¶
Types ¶
type ReadLineFromEnd ¶
type ReadLineFromEnd struct {
// contains filtered or unexported fields
}
ReadLineFromEnd --
func NewReadLineFromEnd ¶
func NewReadLineFromEnd(name 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.