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
cmd/go: allow use of Context in 'go list -f' #6666
Labels
Milestone
Comments
Sorry, I've just re-checked the docs and I still don't see a way to declare arbitrary variables from outside a template, to register them as available within the template: the only descriptions I see have them as items assigned within the template. So I went for layering in .Context as a pseudo-member to overcome that limitation. If I've missed some feature of text/template, please do point me at it as I'll gladly rewrite the patch to create a $Context variable instead! As you say, that's much cleaner. Thanks. |
CL https://golang.org/cl/72770043 references this issue. |
This issue was closed by revision b3a33a6. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Attachments:
The text was updated successfully, but these errors were encountered: