On Tue, Mar 3, 2020, at 10:09, Rizwan Iqbal wrote: > I would avoid multiple go.mod files in one repository as well. I > generally follow the rule of thumb, one module per repository.
I generally follow this advice too, however, I make an exception for modules that don't need to be versioned. For example, I keep a separate module for "example" or "demo" directories so that their dependencies don't wind up in my libraries go.mod file. This isn't a problem though because I'll never tag or version the demos, they're just there to give you an example of how to use the library. —Sam -- 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/abd7f470-4a7d-46da-8c59-0f73bd983581%40www.fastmail.com.