collection

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectCollection

type ObjectCollection struct {
	// contains filtered or unexported fields
}

func NewObjectCollection

func NewObjectCollection() *ObjectCollection

Make a new one of these

func (ObjectCollection) GetIterator

func (r ObjectCollection) GetIterator() func() interface{}

Iterate over all of our items, returning each as a *KeyValuePair in the form of an interface{}

func (ObjectCollection) GetObject

func (r ObjectCollection) GetObject(path string) *obj.Object

Get a Object out of the Collection by path

func (ObjectCollection) HasObject

func (r ObjectCollection) HasObject(path string) bool

Check whether a Object is in the Collection by path

func (*ObjectCollection) PutObject

func (r *ObjectCollection) PutObject(path string, object *obj.Object) error

Put a Object into the Collection by path

type ObjectCollectionIfc

type ObjectCollectionIfc interface {
	GetObject(path string) *obj.Object
	HasObject(path string) bool
	PutObject(path string, object *obj.Object) error
}

type PathObjectPair

type PathObjectPair struct {
	Path string
	Obj  *obj.Object
}

Reciever can cast/assert this struct type against the iterator function's return value

Jump to

Keyboard shortcuts

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