Mark private module path patterns.
Section: Private Modules
Set GOPRIVATE
bash
bash
go env -w GOPRIVATE=github.com/myorg/*Explanation
Mark private module path patterns. Useful in Go CLI workflows.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Private Modules