set

package
v0.0.0-...-030b38e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package set contains a function for performing a subset check for slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceSubsetOf

func SliceSubsetOf(sub, main []string) (bool, []string)

SliceSubsetOf checks whether the first slice is a subset of the second slice. If not, it also returns slice of elements which are the difference of both input slices.

func SlinceContains

func SlinceContains(s []string, e string) bool

SliceContains checks whether the slice contains the element.

Types

This section is empty.

Jump to

Keyboard shortcuts

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