collections

package
v0.0.0-...-370a180 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntSet

type IntSet map[int]struct{}

IntSet is a map that replicates a set for int32s from languages with generics

func (IntSet) Add

func (s IntSet) Add(key int)

Add a value to the set

func (IntSet) Contains

func (s IntSet) Contains(key int) bool

Contains checks if the key belongs in the map

type StringSet

type StringSet map[string]struct{}

StringSet is a map that replicates a set for strings from languages with generics

func (StringSet) Add

func (s StringSet) Add(key string)

Add a value to the set

func (StringSet) Contains

func (s StringSet) Contains(key string) bool

Contains checks if the key belongs in the map

Jump to

Keyboard shortcuts

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