Documentation ¶
Index ¶
- func DirExists(path string) bool
- func DirectorySize(dir string) (int64, error)
- func F2S(f float64) string
- func FileExists(path string) bool
- func FileReadAll(filepath string) (string, error)
- func FileReadAllBytes(filepath string) ([]byte, error)
- func FileWriteAll(filepath, content string) error
- func FileWriteAllBytes(filepath string, content []byte) error
- func I2S(i int) string
- func S2F(s string) (float64, error)
- func S2I(s string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirectorySize ¶
Use unix "du" command to get directory disk usage
func FileExists ¶
Test if a file exists. (if the target is a dir, the function returns false)
func FileReadAll ¶
Return the file content in a string.
func FileReadAllBytes ¶
Return the file content in a []byte.
func FileWriteAllBytes ¶
Write a []byte in a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.