| 1 | # mod |
| 2 | |
| 3 | [](https://pkg.go.dev/golang.org/x/mod) |
| 4 | |
| 5 | This repository holds packages for writing tools |
| 6 | that work directly with Go module mechanics. |
| 7 | That is, it is for direct manipulation of Go modules themselves. |
| 8 | |
| 9 | It is NOT about supporting general development tools that |
| 10 | need to do things like load packages in module mode. |
| 11 | That use case, where modules are incidental rather than the focus, |
| 12 | should remain in [x/tools](https://pkg.go.dev/golang.org/x/tools), |
| 13 | specifically [x/tools/go/packages](https://pkg.go.dev/golang.org/x/tools/go/packages). |
| 14 | |
| 15 | The specific case of loading packages should still be done by |
| 16 | invoking the go command, which remains the single point of |
| 17 | truth for package loading algorithms. |