helpers

package
v0.0.0-...-ba3e287 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSetFromSlice

func CreateSetFromSlice(slice []string) set.Set

CreateSetFromSlice returns a set contains all items in the given slice. if slice is nil, returns empty set.

func GetIntersectionSize

func GetIntersectionSize(slice1, slice2 []string) int

GetIntersectionSize returns size of intersection of two slices.

func SetContainsAll

func SetContainsAll(set set.Set, elements []string) bool

SetContainsAll returns true if the given set contains all elements. Otherwise, returns false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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