stringutils

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsBytesMatch

func ContainsBytesMatch(match string, val []byte) bool

ContainsBytesMatch takes a hex string match regex and a []byte value and tries to find a match

func ContainsBytesMatchInSlice

func ContainsBytesMatchInSlice(slice []string, val []byte) bool

ContainsBytesMatchInSlice takes a hex string match regex and a []byte value and tries to find a match

func ContainsStringMatch

func ContainsStringMatch(match string, str string) bool

ContainsStringMatch returns true if regex match for given str is found

func ContainsStringMatchInSlice

func ContainsStringMatchInSlice(slice []string, str string) bool

ContainsStringMatchInSlice returns true if string is found as match in slice

func RemoveDuplicates

func RemoveDuplicates(strs []string) []string

RemoveDuplicates removes duplicate strings from the slice. Comparision is case-insensitive

Types

This section is empty.

Jump to

Keyboard shortcuts

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