3 ms·
The first thing reminds me of example tests in Go: https://go.dev/blog/examples https://go.dev/blog/examples
by dharmab 3y ago
The first thing reminds me of example tests in Go: https://go.dev/blog/examples https://go.dev/blog/examples
- hitchstory 3y agoSimilar. It's like that but in reverse. Instead of running snippets of your docs as code, the tests and their metadata are used to compile doc snippet or entire how to docs pages.
- dharmab 3y agoThat is how Go's examples work- your example tests are inlined into the GoDocs at pkg.go.dev