Categorygithub.com/projectdiscovery/sliceutil
modulepackage
0.0.1
Repository: https://github.com/projectdiscovery/sliceutil.git
Documentation: pkg.go.dev

# README

sliceutil

The package contains various helpers to interact with slices

# Functions

Contains if a slice contains an element.
ContainsItems checks if s1 contains s2.
Dedupe removes duplicates from a slice of elements preserving the order.
PickRandom item from a slice of elements.
PruneEmptyStrings from the slice.
PruneEqual removes items from the slice equal to the specified value.
ToInt converts a slice of strings to a slice of ints.