Documentation
¶
Overview ¶
Package updater provides self-update functionality for dotgh using GitHub releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReleaseInfo ¶
ReleaseInfo contains information about a release.
type Updater ¶
Updater handles checking for updates and applying them.
func (*Updater) CheckForUpdate ¶
func (u *Updater) CheckForUpdate(ctx context.Context, currentVersion string) (*ReleaseInfo, bool, error)
CheckForUpdate checks if a newer version is available. Returns the release info, whether an update is available, and any error.
Click to show internal directories.
Click to hide internal directories.