grep

package
v0.0.0-...-38f4230 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListFiles

func ListFiles(dir string) ([]string, error)

ListFiles lists the files in a directory.

func ReadLines

func ReadLines(path string) ([]string, error)

ReadLines reads a whole file into memory and returns a slice of its lines.

func Search(fileContents []string, pattern string) map[int]string

Search reads slice of strings, finds the pattern returns a slice of output if match is found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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