this post was submitted on 27 Jun 2023
20 points (91.7% liked)
Golang
2217 readers
1 users here now
This is a community dedicated to the go programming language.
Useful Links:
Rules:
- Posts must be relevant to Go
- No NSFW content
- No hate speech, bigotry, etc
- Try to keep discussions on topic
- No spam of tools/companies/advertisements
- It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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?
ExampleEcho
going to
func Echo
doc Example(and many more)
The sort package in the standard library uses testable examples (source code).
The go stdlib uses it a lot. For example, the strings package