modx

package
v0.1042.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(m *modfile.File, path string) module.Version

Find locates the versions for the given import path. returns zero version if none are found.

func Mutate

func Mutate(dir string, mutation func(*modfile.File) error) (err error)

Mutate the go.mod file in the given directory.

func Open

func Open(dir string) (m *modfile.File, err error)

Open the go.mod file in the given directory

func Print

func Print(m *modfile.File) (s string, err error)

Print the modfile.

func RemoveModule

func RemoveModule(m *modfile.File, path string) error

RemoveModule drop a module from go.mod entirely.

func Replace

func Replace(dir string, m *modfile.File) (err error)

Replace the go.mod file in the given directory.

func Version

func Version(m *modfile.File, path string) module.Version

Version locates the module version for the given import path. returns zero version if none are found. Version differs from find in that it returns the version in use vs the version required.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL