On Tuesday, June 1, 2021 at 12:29:27 AM UTC+2 Paul S. R. Chisholm wrote: > This is not a serious problem, but it surprised me. (By the way, how can I > post a message with code formatting?) > > I'd like to create table-driven benchmarks: > https://blog.golang.org/subtests. > > To that end, I started with code from *The Go Programming Language*: > > [...] > > P.S.: Out of curiosity, how can I post a message with fancy code examples > like this one? > https://groups.google.com/g/golang-nuts/c/5DgtH2Alt_I/m/hlsqdRSGAgAJ >
You should use https://play.golang.org/, instead. It can run main packages and test files. It also supports multiple files (see the select control on the right of share button). The documentation of txtar (used by the playground) is in https://pkg.go.dev/golang.org/x/tools/txtar Manlio -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/bc310ee2-4f71-4ccf-b3e5-679245c9d6ddn%40googlegroups.com.