fileutil

package
v0.0.0-...-bc49051 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLines

func ReadLines(filePath string, handler func(string) error) error

ReadLines reads a file and calls the handler for each line.

Types

type Path

type Path string

Path is a utility for handling files.

func (Path) SplitLines

func (p Path) SplitLines() (output []string)

SplitLines splits an input file by lines.

func (Path) SplitWords

func (p Path) SplitWords() (output []string)

SplitWords splits an input file by word boundaries.

Jump to

Keyboard shortcuts

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