stringset

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	// contains filtered or unexported fields
}

Set is an exceptionally simple `set` implementation for strings. It is not threadsafe, but can be used in place of a simple `map[string]struct{}` as long as you don't want to do too much with it.

func (*Set) Add

func (s *Set) Add(ss ...string)

func (*Set) Delete

func (s *Set) Delete(ss ...string)

func (*Set) Has

func (s *Set) Has(ss string) bool

func (*Set) Len

func (s *Set) Len() int

func (*Set) Values

func (s *Set) Values() []string

Jump to

Keyboard shortcuts

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