set

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 2 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 map[string]struct{}

func New

func New(xs ...string) Set

func NewFromSnapshot

func NewFromSnapshot(snapshot []go_hook.FilterResult) Set

NewFromSnapshot expects snapshot to contain only strings, otherwise it panics

func NewFromValues

func NewFromValues(values *go_hook.PatchableValues, path string) Set

NewFromValues expects values array to contain only strings, otherwise it panics

func (Set) Add

func (s Set) Add(xs ...string) Set

Add adds strings to the set

func (Set) AddSet

func (s Set) AddSet(o Set) Set

func (Set) Delete

func (s Set) Delete(x string) Set

func (Set) Has

func (s Set) Has(x string) bool

func (Set) Size

func (s Set) Size() int

func (Set) Slice

func (s Set) Slice() []string

Jump to

Keyboard shortcuts

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