-
Notifications
You must be signed in to change notification settings - Fork 11
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
printf: handle Array and Map #26
printf: handle Array and Map #26
Conversation
@fiji-flo hi, any chance to get this PR reviewed? 🥺 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @flavio
Could you make it behave like golang fmt.Printf
(see https://play.golang.org/p/3AR2Vlf7FWc) and remove the regex dependency?
I'll get back to you faster next time. I had some busy weeks.
@fiji-flo, sorry for the late response. I was on vacation :) I've updated the PR to address your notes. Note well, the rendering of arrays was already fine (unless I missed something), I fixed the rendering of maps. Once you're happy with the code I can squash the 3 commits into a single one, unless you prefer to merge the branch as it is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks a lot. If you could adopt the nit pick there I'll merge and create a 0.7.1 release 🥂
Handle printing of "%v" with Array and Map objects. Obviously this won't cover 100% of the cases, but it's better than nothing :) Signed-off-by: Flavio Castelli <fcastelli@suse.com>
76a356b
to
04ec37a
Compare
@fiji-flo I've accepted the change, fixed the indentation, ran the tests and then squashed everything into a single commit Thanks for your reviews! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks. I'll fix the clippy warnings (that's on me) and get it released.
@fiji-flo just out of curiosity, how do you handle release? I wanted to subscribe to release events to get notified about the |
I've never automated it. That's on my TODO for all my crates to move this into a github action. But I published it already. I'll move to branches for the |
Handle printing of
%v
with Array and Map objects.Obviously this won't cover 100% of the cases, but it's better than nothing