Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextTopLevels = []string{"channel", "child", "contact", "date", "extra", "flow", "parent", "step"}
ContextTopLevels are the allowed top-level identifiers in legacy expressions, i.e. @contact.bar is valid but @foo.bar isn't
Functions ¶
func MigrateContextReference ¶ added in v0.33.7
MigrateContextReference migrates a context reference in a legacy expression
func MigrateStringLiteral ¶ added in v0.19.0
func MigrateTemplate ¶
func MigrateTemplate(template string, options *MigrateOptions) (string, error)
MigrateTemplate will take a legacy expression and translate it to the new syntax
Types ¶
type MigrateOptions ¶ added in v0.23.0
MigrateOptions are options for how expressions are migrated
Click to show internal directories.
Click to hide internal directories.