Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interp: add a function to get globals #1387

Merged
merged 2 commits into from
Apr 25, 2022
Merged

Conversation

firelizzard18
Copy link
Contributor

@firelizzard18 firelizzard18 commented Apr 16, 2022

Closes #1385. Add func (*Interpreter) Globals() map[string]reflect.Value which returns a map of the global variables and constants declared in package main.

@mvertes mvertes added area/core area/api change in API enhancement New feature or request labels Apr 22, 2022
Copy link
Member

@mvertes mvertes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mvertes mvertes merged commit ad9db37 into traefik:master Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api change in API area/core enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add call to expose variables declared with Eval
3 participants