goven

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(sourcePath, destinationPath string, excludeFilenamePatterns []string, excludePaths []string) error

func CopyFile

func CopyFile(sourcePath, destinationPath string) error

func MatchesAny

func MatchesAny(patterns []string, filename string) (bool, error)

func ModuleName added in v0.0.9

func ModuleName(gomodPath string) (string, error)

func PathExists added in v0.0.2

func PathExists(path string) bool

func PrefixedWith added in v0.0.2

func PrefixedWith(prefixes []string, s string) bool

func ReadModfile added in v0.0.9

func ReadModfile(gomodPath string) (*modfile.File, error)

func Vendor

func Vendor(gomodPath, outputPath, newModuleName, vendoredModulesFolder string, vendorRequired bool, excludePaths []string) error

Types

type Gomod

type Gomod struct {
	File *modfile.File

	ModuleName string
	// contains filtered or unexported fields
}

func OpenModfile

func OpenModfile(modulePath, modFilename string) (*Gomod, error)

func (*Gomod) DropReplace

func (mod *Gomod) DropReplace(moduleName, version string)

func (*Gomod) DropRequire

func (mod *Gomod) DropRequire(moduleName string)

func (*Gomod) IsRequireDropped

func (mod *Gomod) IsRequireDropped(moduleName string) bool

func (*Gomod) Rename

func (mod *Gomod) Rename(name string)

func (*Gomod) RenameSubmodule

func (mod *Gomod) RenameSubmodule(oldName, newName string)

func (*Gomod) Save

func (mod *Gomod) Save(modFilename string) error

Jump to

Keyboard shortcuts

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