[go-nuts] Re: my package not include in go modules

2020-07-29 Thread Brian Candler
A Go module is a collection of packages. The packages are in a tree of directories (Go requires all files in one directory to be part of the same package), and there is a go.mod file at the root of the tree. Users import packages individually, not the whole module. go.mod documents the

[go-nuts] Re: my package not include in go modules

2020-07-28 Thread Christoph Berger
A module can consist of multiple packages. The packages in your repository all belong to the module in the root directory of the repo (where your go.,mod file is). And there is nothing wrong with this. You can maintain them all together in the same module. However, perhaps you want to make