Documentation
¶
Overview ¶
Package variables is a thin wrapper over the sync.Map package
TODO: The sync.Map implementation may not really be necessary anymore since we denormalize the graph any/all vars and env vars will have their own address space so collision _will_ not occur. "¯\_(ツ)_/¯"
Index ¶
- type Variables
- func (vars *Variables) Get(key string) any
- func (vars *Variables) Has(name string) bool
- func (vars *Variables) Map() map[string]any
- func (vars *Variables) Merge(src *Variables) *Variables
- func (vars *Variables) Set(key string, value any)
- func (vars *Variables) With(key string, value interface{}) *Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Variables ¶
type Variables struct {
// contains filtered or unexported fields
}
Variables is struct containing simple key-value string values
func (*Variables) Merge ¶
Merge merges into current container with the src Container src will overwrite the existing keys if exists returns a new instance of the merged *Variables
Click to show internal directories.
Click to hide internal directories.