set

package
v0.0.0-...-2601f63 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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 String

type String struct {
	Map map[string]bool
}

String is a helper type to represent a set of strings

func NewStringSet

func NewStringSet() *String

NewStringSet new StringSet with an empty set

func (*String) Add

func (s *String) Add(i string)

Add adds a string to the set

func (*String) Contains

func (s *String) Contains(input string) bool

Contains returns true if the set contains the given string

func (*String) Items

func (s *String) Items() []string

Items returns all items in the set as slice

Jump to

Keyboard shortcuts

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