strings

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllStringsInMap

func AllStringsInMap(strings []string, stringSet map[string]struct{}) bool

AllStringsInMap checks if all strings in the array are present in the given string set.

func Contains

func Contains(slice []string, target string) bool

Contains 判断切片中是否包含指定字符串

func ContainsAll

func ContainsAll(a, b interface{}) bool

ContainsAll 检查切片 a 是否包含切片 b 中的所有元素

func FindCommonStrings

func FindCommonStrings(arr1, arr2 []string) []string

FindCommonStrings 找到两个字符串切片中的公共字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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