package set

import "github.com/coreos/rkt/pkg/set"

Index

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.

Source Files

string.go

Version
v1.30.0 (latest)
Published
Apr 13, 2018
Platform
linux/amd64
Last checked
5 days ago

Tools for package owners.