replace

package
v0.0.159 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(dir string) (absDir string, modulePath string, err error)

Replace checks if the given directory exists and contains a valid Go module, returns the absolute path of the directory and the module path. Consumer go.mod is the process cwd (CLI). Prefer ReplaceIn in tests.

func ReplaceAll added in v0.0.90

func ReplaceAll() error

ReplaceAll reads the config, gets the LocalModules list, and adds replace directives for dependencies.

func ReplaceIn added in v0.0.150

func ReplaceIn(consumerDir, dir string) (absDir string, modulePath string, err error)

ReplaceIn adds a replace directive in consumerDir's go.mod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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