file

package
v0.0.0-...-1913e9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapseWS

func CollapseWS(s string) string

CollapseWS collapses consective white spaces to a single one.

func FileExists

func FileExists(filename string) (bool, error)

FileExists checks whether the given file exists.

func GetIOReaderFromFile

func GetIOReaderFromFile(pth string) (io.Reader, error)

GetIOReaderFromFile returns io.Reader of the specified file at pth.

func MaybeMkdir

func MaybeMkdir(dirname string, perm os.FileMode) error

MaybeMkFile creates a dir with the given name if the file does not exist.

func SortLines

func SortLines(src, dest string) error

SortLines sorts the lines of th especified src file and save to dest file.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL