set

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 0 Imported by: 5 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String map[string]struct{}

func NewString

func NewString(items ...string) String

func (String) ConditionalHas

func (s String) ConditionalHas(conditionFunc func(source, item string) bool, item string) bool

ConditionalHas returns true if and only if there is any item 'source' in the set that satisfies the conditionFunc wrt 'item'.

func (String) Delete

func (s String) Delete(items ...string)

Delete removes all items from the set.

func (String) Has

func (s String) Has(item string) bool

Has returns true if and only if item is contained in the set.

func (String) HasAll

func (s String) HasAll(items ...string) bool

HasAll returns true if and only if all items are contained in the set.

func (String) Insert

func (s String) Insert(items ...string)

Insert adds items to the set.

Jump to

Keyboard shortcuts

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