Documentation
¶
Index ¶
- type Enter
- func (f Enter) GetBasename(filePath string) string
- func (f Enter) GetDir(filePath string) string
- func (f Enter) GetExt(filePath string) string
- func (f Enter) GetMTime(filePath string) (int64, error)
- func (f Enter) GetSize(filePath string) (size int64, err error)
- func (f Enter) IsDir(filePath string) bool
- func (f Enter) IsExist(filePath string) bool
- func (f Enter) IsFile(filePath string) bool
- func (f Enter) ReadBytes(filePath string) ([]byte, error)
- func (f Enter) ReadLines(filePath string) ([]string, error)
- func (f Enter) ReadString(filePath string) (string, error)
- func (f Enter) Remove(path string) error
- func (f Enter) Rename(filePath string, to string) error
- func (f Enter) SelfDir() string
- func (f Enter) SelfPath() string
- func (f Enter) WriteBytes(filePath string, data []byte) (int, error)
- func (f Enter) WriteString(filePath string, data string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enter ¶
type Enter struct{}
func (Enter) GetBasename ¶
GetBasename returns the base name of the file
func (Enter) ReadString ¶
ReadString reads string from a file
func (Enter) WriteBytes ¶
WriteBytes writes bytes to a file
Click to show internal directories.
Click to hide internal directories.