Versions in this module Expand all Collapse all v0 v0.12.1 Aug 26, 2026 v0.12.0 Aug 20, 2026 Changes in this version + var ErrNoUpdate = errors.New("surge is already up to date") + var ErrUnsupportedPlatform = errors.New("self-update is not supported on this platform") + func Update(ctx context.Context, opts Options) (*version.UpdateInfo, error) + type Options struct + Client *http.Client + CurrentVersion string + ExecutablePath string + GOARCH string + GOOS string + VersionUpdater *version.Updater