Documentation ¶ Index ¶ func FetchLatestVersion(ctx context.Context) (string, error) type Release Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FetchLatestVersion ¶ func FetchLatestVersion(ctx context.Context) (string, error) FetchLatestVersion fetches the latest release version from GitHub. It first tries to get the latest stable release, and if none exists, falls back to the most recent release (including prereleases/betas). Types ¶ type Release ¶ type Release struct { TagName string `json:"tag_name"` } Source Files ¶ View all Source files releases.go Click to show internal directories. Click to hide internal directories.