Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEnv ¶
func WithEnv() option
WithEnv takes all the available environment variables and puts them in the environment namespace of the new Variables instance
func WithOther ¶
func WithOther(v Variables) option
WithOther places the provided map in the variables namespace of the Variables
Types ¶
type Variables ¶
type Variables struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...option) Variables
New returns a new Variables instance that has the provided map set as the main variables namespace and an empty environment namespace
func (Variables) MarshalYAML ¶
func (Variables) Merge ¶
Merge another variable instance with this one and return a copy of the result not modifying the original set of variables
func (*Variables) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.