selfupdate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package selfupdate wraps github.com/creativeprojects/go-selfupdate to let websentinel update its own binary from GitHub releases.

Index

Constants

View Source
const Repository = "sig9org/websentinel"

Repository is "owner/repo" on GitHub, where release binaries are published (see Taskfile.yml build-all for the naming convention).

Variables

This section is empty.

Functions

func Update

func Update(ctx context.Context, currentVersion string) (string, error)

Update checks GitHub for a release newer than currentVersion and, if found, replaces the running binary in place. It reports the outcome as a human-readable message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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