strset

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 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 simple set for strings

func NewSet

func NewSet() *Set

NewSet creates a new *set

func (*Set) Add

func (s *Set) Add(value string)

Add adds a new value to the set

func (*Set) Contains

func (s *Set) Contains(value string) bool

Contains checks to see if a value exists in the set

func (*Set) Len

func (s *Set) Len() int

Len returns the length of the set

func (*Set) Range

func (s *Set) Range() <-chan string

Range lets use range over the struct values

func (*Set) Remove

func (s *Set) Remove(value string)

Remove removes a value from the set

Jump to

Keyboard shortcuts

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