Skip to content
Go project layout with exported packages and command-line tools, using modules
Branch: master
Clone or download
Latest commit ff8d055 Oct 1, 2019

Demonstrates the structure of a Go module on GitHub, with multiple packages and command-line tools.

For more details see

To use the packages in this module, add an import in Go code and call it:

import ""
import ""

// ... later
s := modlib.Config()
h := clientlib.Hello()

To use the modlib-server binary, do:

$ go get
$ modlib-server

All packages in this module are importable by other modules, except for packages located in the internal directory. These can only be used from within the module itself, but cannot be imported from the outside.

To run all tests in this module:

go test ./...
You can’t perform that action at this time.