Skip to content

debeando/go-common

Repository files navigation

go-common

Golang library for common projects on DeBeAndo. When the module is mature or complex, is exported to other repository.

Usage

To point to the local version of a dependency in Go rather than the one over the web, use the replace keyword.

And now when you compile this module (go install), it will use your local code rather than the other dependency.

go mod edit -replace github.com/debeando/go-common=$HOME/go/src/github.com/debeando/go-common

Revert replacement:

go mod edit -dropreplace github.com/debeando/go-common
go get -u