renamer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModulePath

func ModulePath(dir string) (string, error)

ModulePath reads the module directive from the go.mod file in dir. It returns an error when dir has no readable go.mod or the directive is missing, so callers can fall back to asking the user.

func RenameDirModule

func RenameDirModule(oldModule, newModule string, dir string) error

func RenameModule

func RenameModule(oldModule, newModule string, path string) error

func RenameProjectModule

func RenameProjectModule(oldModule, newModule, dir string, relatedFiles []string, ignoreMissingFiles bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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