stringhelper

package
v0.0.0-...-2a271d3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToString

func BoolToString(b *bool) string

func HasAtLeastOneCommonElement

func HasAtLeastOneCommonElement(s1, s2 []string) bool

checks that at least one element is common to both slices

func RemoveEmptyStrings

func RemoveEmptyStrings(s []string) []string

func StringInSlice

func StringInSlice[T ~string](s []T, str T, contains bool) bool

StringInSlice checks a slice for a given string.

func SubSlice

func SubSlice(s, sub []string) bool

SubSlice checks if a slice's elements all exist within a slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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