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
proof is in the pudding - go playground for examples #226
Comments
hi @headwinds I made a small PR: #230 Can you review it, please? As soon as we are ok with this first PR, we can distribute work ;) |
@samber I've reviewed & much approve - that's an excellent approach and should encourage more devs to contribute examples! |
I just added:
|
cool I'll take a look at your samples and could write one similar for find.go - keep it small simple - 😘 |
or maybe not so simple but I always look for examples that have both a simple string and an object |
Can I suggest some changes ? -> https://go.dev/play/p/c2lDl0vxr-V
In your last snippet, I'm not sure declaring |
@samber Yes this is great - let's go with your version - I'm pretty new to go and can see the experience in your upgrades! |
Actually one small change - can we flip the function names and order - so that string example runs first then the struct example - simple before complex Currently it prints:
So I'd like to read:
And ship it! |
Yes, no worries ;) Examples need to be clear and simple to read. This is the only requirement ;) |
Still a few examples missing:
|
first off, fantastic library! this is more praise and wanting to help myself and others learn than an issue.
Has anyone already started to build a collection of examples using the go playground? The docs are excellent - a working example would be icing.
I was struggling a bit to learn how to use filter against a collection so created this playground to sort it out.
The text was updated successfully, but these errors were encountered: