Documentation
¶
Index ¶
- type ContextSet
- func (c *ContextSet) GetContextValue(propertyName string) (any, bool)
- func (c *ContextSet) SetNamedContext(newNamedContext *NamedContext)
- func (c *ContextSet) WithNamedContext(newNamedContext *NamedContext) *ContextSet
- func (c *ContextSet) WithNamedContextValues(name string, values map[string]interface{}) *ContextSet
- type NamedContext
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 (c *ContextSet) GetContextValue(propertyName string) (any, bool)
func (*ContextSet) SetNamedContext ¶
func (c *ContextSet) SetNamedContext(newNamedContext *NamedContext)
func (*ContextSet) WithNamedContext ¶
func (c *ContextSet) WithNamedContext(newNamedContext *NamedContext) *ContextSet
func (*ContextSet) WithNamedContextValues ¶
func (c *ContextSet) WithNamedContextValues(name string, values map[string]interface{}) *ContextSet
type NamedContext ¶
func NewNamedContext ¶
func NewNamedContext() *NamedContext
func NewNamedContextFromProto ¶
func NewNamedContextFromProto(ctx *prefabProto.Context) *NamedContext
func NewNamedContextWithValues ¶
func NewNamedContextWithValues(name string, values map[string]any) *NamedContext
Click to show internal directories.
Click to hide internal directories.