osutil

package
v0.25.3-crie Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 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
	ExitLintFailure              // Lint errors, exclusively.
	ExitInternalFailure          // All other errors: parsing, internal, runtime errors.
)

ExitCode constants.

Jump to

Keyboard shortcuts

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