Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The first thing reminds me of example tests in Go: https://go.dev/blog/examples


Similar. 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.


That is how Go's examples work- your example tests are inlined into the GoDocs at pkg.go.dev




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: