...

Text file src/golang.org/x/mod/README.md

Documentation: golang.org/x/mod

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

View as plain text