syncstrset

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT 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 struct {
	// contains filtered or unexported fields
}

Set is a concurrency-safe string set.

func New

func New() *Set

func (*Set) Delete

func (s *Set) Delete(key string)

Delete removes a string from the set.

func (*Set) ForEach

func (s *Set) ForEach(fn func(key string))

ForEach calls fn for every string in the store.

func (*Set) Len

func (s *Set) Len() int

Len returns the number of stored strings.

func (*Set) Store

func (s *Set) Store(key string)

Store adds a string to the set.

Jump to

Keyboard shortcuts

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