goinstallupdate

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 9 Imported by: 0

README

go-install-update

Update all of GOBIN.

Go-install-update provides an easy way to manage your GOBIN. You can install module with -trimpath and -ldflags flags, and automatically update them.

Usage

Install by go:

go install -v -trimpath -ldflags "-w -s -buildid=" github.com/xchacha20-poly1305/go-install-update/cmd/go-install-update@latest

Build:

go build -v -trimpath -ldflags "-w -s -buildid=" ./cmd/go-install-update/

command:

Usage of go-install-update:
  -V	Print version.
  -d	Dry run. Just check update.
  -ldflags string
    	 (default "-s -w")
  -r	Re-install all binaries.
  -trimpath
    	 (default true)
  -v	Show verbose info. And append -v flag to go install

Credits

Documentation

Index

Constants

View Source
const (
	LatestVersionAPI = "https://proxy.golang.org/%s/@latest"
	VersionListAPI   = "https://proxy.golang.org/%s/@v/list"
)

Variables

This section is empty.

Functions

func LatestVersion

func LatestVersion(module string) (version string, err error)

LatestVersion returns the latest version of module. If there is some problem of using API, it will return error.

func RunUpdate

func RunUpdate(path string, output io.Writer, args ...string) error

RunUpdate use go command to update GOBIN. output used to show output.

func UnstableVersion added in v0.2.0

func UnstableVersion(module string) (version string, err error)

UnstableVersion gets the test version.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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