file

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

Exists reports whether the path is a regular file and exists as a boolean

func RemoveCR added in v0.2.0

func RemoveCR(text string) string

RemoveCR returns a new string with all carriage returns removed (Unix Style).

This converts CR line endings to to LineFeeds (i.e. \n).

func SplitLines added in v0.2.0

func SplitLines(input string) []string

SplitLines returns the string split by new lines (CR, CR+LF, and LF).

Types

This section is empty.

Jump to

Keyboard shortcuts

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