files

package
v0.0.0-...-703489d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SkipRest can be used to skip the rest of the file.
	SkipRest = errors.New("skip rest")
)

Functions

func ReadLines

func ReadLines(ctx context.Context, path string, fn func(line string) error) error

ReadLines will read lines from a file and pass each line to a func handler.

func WorkingDirectoryOrDie

func WorkingDirectoryOrDie() string

WorkingDirectoryOrDie will get the working directory, or die trying.

Types

This section is empty.

Jump to

Keyboard shortcuts

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