-
Notifications
You must be signed in to change notification settings - Fork 100
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
stack: export new ParseStack function #51
Conversation
Codecov Report
@@ Coverage Diff @@
## master #51 +/- ##
========================================
+ Coverage 88.7% 90.0% +1.3%
========================================
Files 12 12
Lines 4077 3460 -617
========================================
- Hits 3615 3114 -501
+ Misses 397 281 -116
Partials 65 65
Continue to review full report at Codecov.
|
c17d57c
to
8654fc7
Compare
If you're ok with adding this api, I'm happy to add a test |
Can you expand on the use case? I'm not sure it is a frequent need, worth increasing the API surface. I generally prefer small API surface with o/nly one way of doing something", and I feel this would create two ways of doing one thing that is all in all, relatively trivial. As such, I'd very like much see a new example in example_test.go named Example_simple() that would essentially be the code you put. Note that ScanSnapshot() will never return a *Snapshot without at least one goroutine in it so you can simplify the code there. |
Before going further, I actually went ahead and tested this and it fails with an EOF error. I'm passing in
|
Scratch that, I didn't realize that the |
Thanks! |
8654fc7
to
fc5267e
Compare
Just pushed it as an example. We rolled this out into production over the weekend and it's working great! Thanks for the awesome library! |
Thanks! |
I'll have to do a dot release for it to show up on pkg.go.dev, will do one before EOY. |
fixes #50