fileparser

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CoverageProfileExcludingRules = []string{
		`^\s*$`,
		`^mode: .*`,
	}

	GoModGetModuleNameRule = "^module .*" // first line is the module name
)

Functions

func MatchPattern

func MatchPattern(line string, patterns ...string) (bool, error)

func ReadLines

func ReadLines(filename string, excludingPatterns ...string) ([]string, error)

ReadLines converts a file to lines. Each line should contain '\n' in the end len(lines) should match file lines

Types

This section is empty.

Jump to

Keyboard shortcuts

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