filter

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

The purpose of the package filter is to reduce the download to the specified files by filtering through the configuration's files, downloading only the ones that match the supplied pattern given via --filter flag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Component

func Component(filterFlag []string) []string

The function Component will filter through the list of files supplied on the configuration files, returning a slice of strings that match the given pattern

func RemoveDuplicates

func RemoveDuplicates[T string | int](sliceList []T) []T

This function iterates through the given slice and removes any duplicate keys in the slice, returning a list without any duplicates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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