NewExpressionExtractor creates a new ExpressionExtractor
()
| 38 | |
| 39 | // NewExpressionExtractor creates a new ExpressionExtractor |
| 40 | func NewExpressionExtractor() *ExpressionExtractor { |
| 41 | return &ExpressionExtractor{ |
| 42 | mappings: make(map[string]*ExpressionMapping), |
| 43 | counter: 0, |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // contentTransformer is a function that rewrites an expression's content string. |
| 48 | // It receives the current content and returns the (possibly) transformed content. |
no outgoing calls