diff --git a/go.md b/go.md index d3f6269..a57dbaf 100755 --- a/go.md +++ b/go.md @@ -40,6 +40,12 @@ go get golang.org/x/tools/cmd/godoc go mod edit -replace old.repo/location=../new/location ``` +or + +``` +echo "old.repo/location => ../new/location" >> go.mod +``` + > The `-replace=old[@v]=new[@v]` flag adds a replacement of the given > module path and version pair. If the @v in old@v is omitted, a > replacement without a version on the left side is added, which applies