cstrset

package
v0.0.0-...-88ab25c Latest Latest
Warning

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

Go to latest
Published: Mar 28, 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 CaseInsensitiveSet

type CaseInsensitiveSet map[string]string

func NewCaseInsensitive

func NewCaseInsensitive(items ...string) *CaseInsensitiveSet

func NewCaseInsensitiveWithSize

func NewCaseInsensitiveWithSize(size int) *CaseInsensitiveSet

func (*CaseInsensitiveSet) Add

func (s *CaseInsensitiveSet) Add(e string)

func (*CaseInsensitiveSet) Difference

func (s *CaseInsensitiveSet) Difference(other Set) *strset.Set

func (CaseInsensitiveSet) Has

func (s CaseInsensitiveSet) Has(e string) bool

func (CaseInsensitiveSet) Len

func (s CaseInsensitiveSet) Len() int

type CaseSensitiveSet

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

func NewCaseSensitive

func NewCaseSensitive(items ...string) *CaseSensitiveSet

func NewCaseSensitiveWithSize

func NewCaseSensitiveWithSize(size int) *CaseSensitiveSet

func (*CaseSensitiveSet) Add

func (s *CaseSensitiveSet) Add(e string)

func (*CaseSensitiveSet) Difference

func (s *CaseSensitiveSet) Difference(other Set) *strset.Set

func (*CaseSensitiveSet) Has

func (s *CaseSensitiveSet) Has(e string) bool

func (CaseSensitiveSet) Len

func (s CaseSensitiveSet) Len() int

type Set

type Set interface {
	Add(string)
	Has(string) bool
	Difference(Set) *strset.Set
	Len() int
}

Jump to

Keyboard shortcuts

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