Versions in this module Expand all Collapse all v0 v0.7.1 Jul 25, 2023 v0.7.0 Jul 20, 2023 Changes in this version + const EntityCompiler + const ISODateFormat + const ISOTimeFormat + func Date(timeStr string) (string, error) + func DateModify(fmt string, date time.Time) time.Time + func Join(sep string, v []string) string + func List(v ...string) []string + func OptimusFuncMap() template.FuncMap + func PrepareContext(builders ...ContextOpts) map[string]interface + func Replace(old, newStr, name string) string + func Trunc(c int, s string) string + func UnixEpoch(date time.Time) string + type ContextOpts struct + func From(confs ...map[string]string) ContextOpts + func (b ContextOpts) AddToContext() ContextOpts + func (b ContextOpts) WithKeyPrefix(prefix string) ContextOpts + func (b ContextOpts) WithName(name string) ContextOpts + type Engine struct + func NewEngine() *Engine + func (e *Engine) Compile(templateMap map[string]string, context map[string]any) (map[string]string, error) + func (e *Engine) CompileString(input string, context map[string]any) (string, error)