setutil

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference(list []string, set map[string]struct{}) []string

Difference returns the elements in list that are not in set.

func Intersection

func Intersection(list []string, set map[string]struct{}) []string

Intersection returns the elements in list that are in set.

func ToSet

func ToSet(list []string) map[string]struct{}

ToSet converts a list to a set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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