remod: Index | Files

package remod

import ""


Package Files

constants.go extract.go git.go mod.go update.go utils.go

func Enabled Uses

func Enabled() bool

Enabled checks if remod is enabled.

func Extract Uses

func Extract(data []byte, prefixes []string, excluded []string) ([]string, error)

Extract extracts the required modules with the given prefixes

func GitAdd Uses

func GitAdd() error

GitAdd adds the go mod

func GitConfig Uses

func GitConfig() error

GitConfig installs the needed git config

func GitFilterClean Uses

func GitFilterClean(input io.Reader, output io.Writer) error

GitFilterClean is used by git filter.

func GitFilterSmudge Uses

func GitFilterSmudge(input io.Reader, output io.Writer) error

GitFilterSmudge is used by git filter.

func GitInit Uses

func GitInit() error

GitInit initializes the .gitattribute file.

func GitRemoveConfig Uses

func GitRemoveConfig() error

GitRemoveConfig removes the remod git config

func Initialized Uses

func Initialized() bool

Initialized checks if remod is initialized.

func Install Uses

func Install(prefix string, version string, included []string, excluded []string) error

Install installs go mod in the current repo.

func Off Uses

func Off() error

Off disables remod

func On Uses

func On() error

On enables remod

func Uninstall Uses

func Uninstall() error

Uninstall uninstalls go mod from the current repo.

func Update Uses

func Update(modules []string, version string) error

Update will run a go get on the given modules at the given version

Package remod imports 10 packages (graph) and is imported by 1 packages. Updated 2020-01-29. Refresh now. Tools for package owners.