osutil

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAllLines

func ReadAllLines(
	fileName string,
	newlineChar string,
) ([]string, error)

ReadAllLines reads all lines from a file.

func WriteLinesToExistingFile

func WriteLinesToExistingFile(
	fileName string,
	lines []string,
	newlineChar string,
) error

WriteLinesToExistingFile writes lines to an existing file.

Types

type ExitCode

type ExitCode int

ExitCode is a code for os.Exit()

const (
	ExitSuccess ExitCode = iota
	ExitFailure
)

ExitCode constants.

Jump to

Keyboard shortcuts

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