gup

package module
v0.0.0-...-ad1c121 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 12 Imported by: 0

README

gup

Golang binary updater!

gup takes a go binary and uses the symbol table in the executable to find out where its from and then updates it in case it is out of date.

Usage

gup [binary ...]

gup updates go binaries. It finds the go import path of the binary and does 'go get -u' and 'go install' for that path if found.

Notes

This is useful for small CLI tools that people make that may become out of date.

Uses code from goman.

I intend to update this almost never since it should just work.

Maybe a cool feature to add would be an import in your go executables that checks if it s out of date and lets you know to stderr.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPkg

func GetPkg(bin string) (string, error)

GetPkg takes the location of an executable and produces the import name.

Types

This section is empty.

Directories

Path Synopsis
cmd
gup

Jump to

Keyboard shortcuts

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