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
x/blog: make snippet more flexible in slices blog #39240
Comments
I'm sorry, I don't understand what you mean. Can you show an example of how you think the blog post should be changed? Thanks. |
I think It's good to have
in runnable snippet just like other functions in the blog.
|
yeah thanks @Quaqmre . But I think it will be good to have that option too, just like other functions in the blog. hom? |
Maybe u right it will be much helpfull for developers,but this issue releated with https://github.com/golang/blog project , u can reopen this issue on blog project ı think. And I checked source code of gddo and snippets can doable more flexible with small changes, .code slices/prog010.go /^func/,/^}/ |
@Quaqmre thanks for your help |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
in https://blog.golang.org/slices blog at
Passing slices to functions
can't change or play with AddOneToEachElement function.What did you expect to see?
adding AddOneToEachElement function to the try it snippet to try or change the function.
What did you see instead?
unable to change AddOneToEachElement function.
The text was updated successfully, but these errors were encountered: