parpardownloader

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadParParCmd

func DownloadParParCmd(executablePath string) (string, error)

DownloadParParCmd downloads the latest parpar executable from GitHub releases for the current operating system and architecture.

It performs the following steps: 1. Fetches latest release information from GitHub 2. Determines system OS and architecture 3. Finds appropriate release asset for the system 4. Downloads the executable file

Returns:

  • string: The name of the downloaded executable ("parpar")
  • error: Any error encountered during the download process

Types

type Release

type Release struct {
	TagName string `json:"tag_name"`
	Assets  []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
	} `json:"assets"`
}

Release represents the structure of the GitHub release JSON response

Jump to

Keyboard shortcuts

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