Versions in this module Expand all Collapse all v0 v0.2.0 Sep 12, 2023 Changes in this version type MoldTemplateVariable + Tags []string + func (m *MoldTemplateVariable) AllTags() []string + func (m *MoldTemplateVariable) HasTag(tag string) bool + func (m *MoldTemplateVariable) HasTags() bool v0.1.0 Sep 8, 2023 Changes in this version + const MoldDataTypeBoolean + const MoldDataTypeNumber + const MoldDataTypeString + const WriterStdout + var ErrEmptyMold = errors.New("mold variables are empty") + var ErrEnvironmentVariableDoesNotExist = errors.New("environment variable does not exist") + var ErrInvalidDataType = errors.New("value does not implement the required type") + var ErrMissingVariableName = errors.New("missing environment variable name") + type MoldTemplate struct + func New(r io.Reader) (*MoldTemplate, error) + func (m *MoldTemplate) Generate() error + func (m *MoldTemplate) GetAllVariables() []MoldTemplateVariable + func (m *MoldTemplate) GetVariable(key string) (*MoldTemplateVariable, error) + func (m *MoldTemplate) SetPromptReader(rd io.Reader) + func (m *MoldTemplate) WriteEnvironment(w Writer) error + type MoldTemplateVariable struct + Name string + Required bool + Type string + Value interface{} + func (m *MoldTemplateVariable) String() string + type StdoutWriter struct + func (w *StdoutWriter) Write(envVars map[string]MoldTemplateVariable) error + type Writer interface + Write func(map[string]MoldTemplateVariable) error