Documentation ¶
Index ¶
- func CreateDirectory(path string) error
- func GenerateCRC32Checksum(path string) (uint32, 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 ReadLinesFromFile(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
CreateDirectory creates and ensure a directory in the specified path
func GenerateCRC32Checksum ¶ added in v0.0.83
GenerateCRC32Checksum generates CRC32 checksum of the file in the specified path
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 ReadLinesFromFile ¶ added in v0.0.86
ReadLinesFromFile returns content of the file in the specified path as lines
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.