go_update

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(dir string) (absDir string, modulePath string, err error)

Replace checks if the given directory exists and contains a valid Go module, returns the absolute path of the directory and the module path

func Update

func Update(dir string) error

Types

type GoMod

type GoMod struct {
	Module struct {
		Path string `json:"Path"`
	} `json:"Module"`
}

type ModuleInfo

type ModuleInfo struct {
	Module struct {
		Path string `json:"Path"`
	} `json:"Module"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳