set

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2016 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 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