searchutils

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString added in v0.0.18

func ContainsString(data, target string) bool

ContainsString is delegated to verify if the given string is present in the data

func ContainsStringByte added in v0.0.18

func ContainsStringByte(data []byte, target string) bool

ContainsStringByte is delegated to verify if the given string is present in the data

func ContainsStrings added in v0.0.18

func ContainsStrings(data string, targets []string) bool

ContainsStrings is delegated to verify if the given array of string are present in the data

func ContainsStringsByte added in v0.0.18

func ContainsStringsByte(data []byte, targets []string) bool

ContainsStringsByte is delegated to verify if the given array of string are present in the data

func ContainsWhichStrings added in v0.0.18

func ContainsWhichStrings(data string, target []string) []string

ContainsWhichStrings is delegated to verify which strings are present in the data

func ContainsWhichStringsByte added in v0.0.18

func ContainsWhichStringsByte(data []byte, target []string) []string

ContainsWhichStringsByte is delegated to verify which strings are present in the data

func LinearSearchInt

func LinearSearchInt(data []int, target int) int

LinearSearchInt is a simple for delegated to find the target value

func LinearSearchParallelInt

func LinearSearchParallelInt(data []int, target, thread int) int

LinearSearchParallelInt is delegated to parallelize the execution of search method

func LinearSearchParallelIntHelper

func LinearSearchParallelIntHelper(wg *sync.WaitGroup, data []int, target, i int, result []int)

LinearSearchParallelIntHelper is delegated to search the number and append to the given result array

Types

This section is empty.

Jump to

Keyboard shortcuts

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