Documentation ¶
Index ¶
- func DetachFileExtension(fName string) (string, string)
- func GetFileReader(fName string) (io.Reader, *os.File, error)
- func IsDirectory(path string) (bool, error)
- func IsFile(fName string) bool
- func ReadFileToLines(fName string) ([]string, error)
- func ReadFileToString(fName string) (string, error)
- func ReadStdinToLines() ([]string, error)
- func ReadStdinToString() (string, error)
- func RemoveFileExtension(fName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetachFileExtension ¶
func GetFileReader ¶
GetFileReader reads an input file, gzipped or plain text, and returns an io.Reader for line scanning, along with the file handle, that needs to be closed after reading.
func IsDirectory ¶
func ReadFileToLines ¶
ReadFileToLines Read a file into a list of lines
func ReadFileToString ¶
ReadFileToString Read a file into a string using ioutil.ReadFile (keeping final newline, if any)
func ReadStdinToLines ¶
ReadStdinToLines Read stdin into a list of lines
func ReadStdinToString ¶
ReadStdinToString Read stdin into a string using ioutil.ReadFile (removing final newline, if any)
func RemoveFileExtension ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.