Macros option extends the macro set configured in the environment. Note: This option must be specified after ClearMacros if used together.
(macros ...Macro)
| 266 | // |
| 267 | // Note: This option must be specified after ClearMacros if used together. |
| 268 | func Macros(macros ...Macro) EnvOption { |
| 269 | return func(e *Env) (*Env, error) { |
| 270 | e.macros = append(e.macros, macros...) |
| 271 | return e, nil |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | // Container sets the container for resolving variable names. Defaults to an empty container. |
| 276 | // |
no outgoing calls