utils

package
v0.0.0-...-32d9607 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSet

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

StringSet is a simple set of strings.

func NewStringSet

func NewStringSet() *StringSet

NewStringSet creates a new set of strings.

func (*StringSet) Add

func (s *StringSet) Add(values ...string)

Add will add all the given values into the set.

func (*StringSet) Has

func (s *StringSet) Has(values ...string) bool

Has will check that all the given values exist in the set. False will be returned if any one value is missing.

func (*StringSet) String

func (s *StringSet) String() string

String gets the debug string listing all the values in the set.

func (*StringSet) Values

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

Values will get the set of strings as a sorted slice.

Jump to

Keyboard shortcuts

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