util

package
v0.0.0-...-a2a9c72 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListFiles

func ListFiles(directory string,
	includePatterns []string,
	excludePatterns []string) ([]os.FileInfo, error)

ListFiles list all files in `directory` that match `includePatterns` and unmatch `excludePatterns`

func RemoveFileExtention

func RemoveFileExtention(fileName string) string

RemoveFileExtention remove file ext. Example: file.RemoveFileExtention("abc.a") will return "abc"

Types

type RegexesMatcher

type RegexesMatcher struct {
	// contains filtered or unexported fields
}

func (*RegexesMatcher) Match

func (m *RegexesMatcher) Match(input string) bool

Jump to

Keyboard shortcuts

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