Macros option extends the macro set configured in the environment. Note: This option must be specified after ClearMacros if used together.
(macros ...Macro)
| 254 | // |
| 255 | // Note: This option must be specified after ClearMacros if used together. |
| 256 | func Macros(macros ...Macro) EnvOption { |
| 257 | return func(e *Env) (*Env, error) { |
| 258 | e.macros = append(e.macros, macros...) |
| 259 | return e, nil |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | // Container sets the container for resolving variable names. Defaults to an empty container. |
| 264 | // |
no outgoing calls