set

package
v1.63.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 3 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) Intersection added in v1.37.0

func (s Set) Intersection(o Set) Set

func (Set) MarshalJSON added in v1.36.9

func (s Set) MarshalJSON() ([]byte, error)

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