str

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 1 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 map[string]struct{}

func MakeSet

func MakeSet(strings ...string) Set

func (Set) Add

func (set Set) Add(s string)

func (Set) Count

func (set Set) Count() int

func (Set) Del

func (set Set) Del(s string)

func (Set) Equals

func (set Set) Equals(anotherSet Set) bool

Equals compares this StringSet with another StringSet.

func (Set) Has

func (set Set) Has(s string) (exists bool)

func (Set) ToSlice

func (set Set) ToSlice() []string

ToSlice returns the items in the set as a sorted slice.

Jump to

Keyboard shortcuts

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