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

Way to re-evaluate once parameters have been parsed #197

Open
thenom opened this issue Apr 19, 2024 · 1 comment
Open

Way to re-evaluate once parameters have been parsed #197

thenom opened this issue Apr 19, 2024 · 1 comment

Comments

@thenom
Copy link

thenom commented Apr 19, 2024

Simple example of issue:
https://go.dev/play/p/_m3Kp_3nfV7

I am basically trying to find a way of using the value from a parameter as the name of another parameter to get its value.

Any ideas?

Was thinking about a custom function but started getting a bit messy in my head. Kind of just checking that there isnt a way to do this natively?

Thanks in advance

@thenom
Copy link
Author

thenom commented Apr 19, 2024

Hmm, this seems to work but was hoping for something more elegant:

https://go.dev/play/p/Ww4neCZUUsV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant