version

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(v string) string

func Print

func Print(w io.Writer, info Info)

Types

type Info

type Info struct {
	Version string
	Commit  string
	Date    string
}

func Resolve

func Resolve(raw Info) Info

type UpdateOptions

type UpdateOptions struct {
	Repo           string
	BinaryName     string
	TargetVersion  string
	CurrentVersion string
	Client         *http.Client
}

type UpdateResult

type UpdateResult struct {
	Version string
	Path    string
	Updated bool
}

func Update

func Update(ctx context.Context, opts UpdateOptions) (*UpdateResult, error)

Jump to

Keyboard shortcuts

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