Created
January 20, 2019 02:44
-
-
Save ef2k/a9091900636172f30564b971b109bfdc to your computer and use it in GitHub Desktop.
Local dist module outside of $GOPATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In project using module: | |
`go module init <project name>` | |
``` | |
// go.mod | |
module main | |
require ( | |
github.com/ef2k/paco v0.0.0 // Path used in import path | |
) | |
replace github.com/ef2k/paco => ./paco // Replace import path with path to local module. | |
``` | |
Inside of the module: | |
`go module init <module name>` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment