Hi, when providing a lib/module, would sample code under the `examples` folder be considered/linked as part of the module? I guess Go linker would be smart enough to not include them, as they all have their own `func main()` in them, but just want to clarify / confirm.
I remember seeing one lib/module, which, in order not to let the examples affect the module package size, even put the `examples` folder under `internal/`. All in all, what's the idiomatic way for Go modules to provide usage examples, everything under the same `examples` folder, or different packages having their own `examples` folders, or other ways? thx. -- 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/CAMmz1Oe3DN5pNFgTBYLOLo64GPyq56Q1ZoOxCAHZ5HeOu4yJfw%40mail.gmail.com.