Documentation ¶
Index ¶
- func CopyDir(sourcePath, destinationPath string, excludeFilenamePatterns []string, ...) error
- func CopyFile(sourcePath, destinationPath string) error
- func MatchesAny(patterns []string, filename string) (bool, error)
- func ModuleName(gomodPath string) (string, error)
- func PathExists(path string) bool
- func PrefixedWith(prefixes []string, s string) bool
- func ReadModfile(gomodPath string) (*modfile.File, error)
- func Vendor(gomodPath, outputPath, newModuleName, vendoredModulesFolder string, ...) error
- type Gomod
- func (mod *Gomod) DropReplace(moduleName, version string)
- func (mod *Gomod) DropRequire(moduleName string)
- func (mod *Gomod) IsRequireDropped(moduleName string) bool
- func (mod *Gomod) Rename(name string)
- func (mod *Gomod) RenameSubmodule(oldName, newName string)
- func (mod *Gomod) Save(modFilename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModuleName ¶ added in v0.0.9
func PathExists ¶ added in v0.0.2
func PrefixedWith ¶ added in v0.0.2
Types ¶
type Gomod ¶
type Gomod struct { File *modfile.File ModuleName string // contains filtered or unexported fields }
func OpenModfile ¶
func (*Gomod) DropReplace ¶
func (*Gomod) DropRequire ¶
func (*Gomod) IsRequireDropped ¶
func (*Gomod) RenameSubmodule ¶
Click to show internal directories.
Click to hide internal directories.