fs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RenamedModfile = "go.mod.tmpmod"
	RenamedGoSum   = "go.sum.tmpmod"
)

Variables

This section is empty.

Functions

func CleanupModuleFiles

func CleanupModuleFiles(wd string) error

func ModfileAndGoRoot

func ModfileAndGoRoot(wd string) (*modfile.File, string, error)

ModfileAndGoRoot - returns the parsed go.mod file and the root directory of the go module.

func RenameModule

func RenameModule(dir, from, to string, excludeModfile bool) error

RenameModule - rename module name in all go.mod, go.sum and go files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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