contexts

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextSet

type ContextSet struct {
	Data map[string]*NamedContext
}

func Merge

func Merge(contextSets ...*ContextSet) *ContextSet

func NewContextSet

func NewContextSet() *ContextSet

func NewContextSetFromProto

func NewContextSetFromProto(protoContextSet *prefabProto.ContextSet) *ContextSet

func (*ContextSet) GetContextValue

func (cs *ContextSet) GetContextValue(propertyName string) (any, bool)

func (*ContextSet) GroupedKey added in v0.0.7

func (cs *ContextSet) GroupedKey() string

func (*ContextSet) SetNamedContext

func (cs *ContextSet) SetNamedContext(newNamedContext *NamedContext)

func (*ContextSet) ToProto added in v0.0.7

func (cs *ContextSet) ToProto() *prefabProto.ContextSet

func (*ContextSet) WithNamedContext

func (cs *ContextSet) WithNamedContext(newNamedContext *NamedContext) *ContextSet

func (*ContextSet) WithNamedContextValues

func (cs *ContextSet) WithNamedContextValues(name string, values map[string]interface{}) *ContextSet

type NamedContext

type NamedContext struct {
	Data map[string]any
	Name string
}

func NewNamedContext

func NewNamedContext() *NamedContext

func NewNamedContextFromProto

func NewNamedContextFromProto(ctx *prefabProto.Context) *NamedContext

func NewNamedContextWithValues

func NewNamedContextWithValues(name string, values map[string]any) *NamedContext

func (*NamedContext) ToProto added in v0.0.7

func (nc *NamedContext) ToProto() *prefabProto.Context

Jump to

Keyboard shortcuts

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