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

Adding context.Context support and a logger #791

Merged
merged 1 commit into from
Feb 28, 2020
Merged

Conversation

hairyhenderson
Copy link
Owner

Starting initial work on propagating context.Context throughout gomplate for cleaner cancellation/timeout/etc support, and instead of just using fmt.Fprintf for logging, switching to zerolog. This has the added benefit that I can now do some verbose logging in "deeper" areas more easily.

Introduces a new gomplate.RunTemplatesWithContext function. Not sure I like the name, and I am likely to change the signature in #692.

Signed-off-by: Dave Henderson [email protected]

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

Successfully merging this pull request may close these issues.

1 participant