stringset

package
v0.0.0-...-b628146 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

string set not concurrent safety

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumerateFunc

type EnumerateFunc func(str string)

type Set

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

func NewSet

func NewSet(strs ...string) *Set

func (*Set) Add

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

func (*Set) Contains

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

func (*Set) Enumerate

func (s *Set) Enumerate(f EnumerateFunc)

func (*Set) GetSlice

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

func (*Set) Length

func (s *Set) Length() int

func (*Set) Merge

func (s *Set) Merge(another *Set)

func (*Set) Remove

func (s *Set) Remove(values ...string)

Jump to

Keyboard shortcuts

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