Documentation ¶
Index ¶
- func CreateDirectory(path string) error
- func IsDirectoryExist(path string) bool
- func IsFileExist(path string) bool
- func ReadBytesFromFile(path string) ([]byte, error)
- func ReadFirstLineBytesFromFile(path string) ([]byte, error)
- func ReadFirstLineFromFile(path string) (string, error)
- func ReadStringFromFile(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶ added in v0.0.82
func IsDirectoryExist ¶ added in v0.0.12
IsDirectoryExist return true if a file exist in the specified path
func IsFileExist ¶
IsFileExist return true if a file exist in the specified path
func ReadBytesFromFile ¶ added in v0.0.70
ReadBytesFromFile returns content of the file in the specified path as bytes
func ReadFirstLineBytesFromFile ¶ added in v0.0.70
func ReadFirstLineFromFile ¶ added in v0.0.71
func ReadStringFromFile ¶
ReadStringFromFile returns content of the file in the specified path as string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.