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
proposal: log/slog: add iterator form of Record.Attrs
#61934
Comments
Would we need |
@AndrewHarrisSPU I don't think either of those are necessary. You may be confusing
|
It knows the open groups, but it may encounter more grouping or nesting in the record attributes? I guess |
To answer your question, yes, the |
How about AttrsIter instead of AllAttrs? AllAttrs seems to imply that Attrs doesn't give you all the attrs. |
log/slog.Record.Attrs
is used to iterate over the attributes stored in a record:If #61897 is accepted, we propose adding a method that fits better with that proposal:
The text was updated successfully, but these errors were encountered: