stringset

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllStrings

func AllStrings() *allStringsSet

Types

type MutableSet

type MutableSet interface {
	Set
	Insert(string)
}

func New

func New() MutableSet

type Set

type Set interface {
	Has(string) bool
	HasAny([]string) bool
	// Count returns the number of elements in the set.
	// A value of -1 indicates infinite size and can be returned by a
	// set representing all possible string values.
	Count() int
}

func NewFromStrings

func NewFromStrings(items ...string) Set

Jump to

Keyboard shortcuts

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