pathfilter

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtensionFilterStart = "*."
)

Variables

This section is empty.

Functions

func Get

func Get(
	separator string,
	isNormalize bool,
	pathTranspiler *corestr.Hashmap,
	rootPath string,
	filter *Query,
) *errstr.ResultsWithErrorCollection

func GetExcept

func GetExcept(
	separator string,
	isNormalize bool,
	pathTranspiler *corestr.Hashmap,
	rootPath string,
	filter, excepts *Query,
) *errstr.ResultsWithErrorCollection

func GetFiltersArray

func GetFiltersArray(
	rootPath string,
	additionalFilters *[]string,
	extensions *[]string,
	isRecursive bool,
	isNormalizePath bool,
) *[]string

rootPath should not ends with separator

func GetRecursive

func GetRecursive(
	separator string,
	isNormalize bool,
	pathTranspiler *corestr.Hashmap,
	rootPath string,
	filter *Query,
) *errstr.ResultsWithErrorCollection

func GetRecursiveExcept

func GetRecursiveExcept(
	separator string,
	isNormalize bool,
	pathTranspiler *corestr.Hashmap,
	rootPath string,
	filter, excepts *Query,
) *errstr.ResultsWithErrorCollection

func GetTranspiledPathForDollarVariables

func GetTranspiledPathForDollarVariables(
	pathTranspiler *corestr.Hashmap,
	givenPath string,
) string

func NewArray

func NewArray(array ...string) *[]string

Types

type Query

type Query struct {
	AdditionalFilters *[]string
	// contains filtered or unexported fields
}

func NewQuery

func NewQuery(additionalFilters, extensions *[]string) *Query

func (*Query) CreateJoinedPathsWithFilters

func (q *Query) CreateJoinedPathsWithFilters(separator, rootPath string) *[]string

func (*Query) Extensions

func (q *Query) Extensions() *[]string

func (*Query) ExtensionsLength

func (q *Query) ExtensionsLength() int

func (*Query) FilterLength

func (q *Query) FilterLength() int

Jump to

Keyboard shortcuts

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