fileutils

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package fileutils is an internal package that contains helper functions for working with common file types/formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasLine

func HasLine(searchTerm string, ignorePrefix string, filename string) (bool, error)

HasLine accepts a search string, an optional pattern to ignore and a fully-qualified path to a file containing a list of such strings (e.g., commonly usernames or single IP Addresses), one per line. Lines beginning with the optional ignore pattern (e.g., a `#` character) are ignored. Leading and trailing whitespace per line is ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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