- cross-posted to:
- golang
- cross-posted to:
- golang
You must log in or register to comment.
There’s also Testable Examples in Go from the official Go blog.
I have not seen this before. Thanks for sharing. Do you know any projects that utilize this, so I can see an example implementation of this?
Do you know any projects that utilize this, so I can see an example implementation of this?
The sort package in the standard library uses testable examples (source code).
The go stdlib uses it a lot. For example, the strings package