Documentation ¶
Index ¶
- func Find(m *modfile.File, path string) module.Version
- func FindModuleRoot(dir string) (cleaned string, err error)
- func Mutate(dir string, mutation func(*modfile.File) error) (err error)
- func Open(dir string) (m *modfile.File, err error)
- func Print(m *modfile.File) (s string, err error)
- func RemoveModule(m *modfile.File, path string) error
- func Replace(dir string, m *modfile.File) (err error)
- func Version(m *modfile.File, path string) module.Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
Find locates the versions for the given import path. returns zero version if none are found.
func FindModuleRoot ¶
FindModuleRoot pulled from: https://github.com/golang/go/blob/88e564edb13f1596c12ad16d5fd3c7ac7deac855/src/cmd/dist/build.go#L1595
func RemoveModule ¶
RemoveModule drop a module from go.mod entirely.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.