arrays

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIfRegexpNotExistString

func AppendIfRegexpNotExistString(array []string, re *regexp.Regexp, value string) []string

AppendIfRegexpNotExistString - returns new array with inserted new value if RegExp doesn't match any existing value

func ContainsString

func ContainsString(array []string, value string) bool

ContainsString - returns true if an array contains a string, otherwise false

func FindRegexpIndexesString

func FindRegexpIndexesString(array []string, re *regexp.Regexp) (indexes []int)

FindRegexpIndexesString - finds all indexes of RegExp matching values in the array

Types

This section is empty.

Jump to

Keyboard shortcuts

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