Documentation ¶ Index ¶ func Download(ctx context.Context, url, destPath string, timeout time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Download ¶ func Download(ctx context.Context, url, destPath string, timeout time.Duration) error Download fetches url and writes the response body to destPath atomically: it streams into a temporary file and renames it to destPath on success, so a failed download never leaves a partial file behind. Types ¶ This section is empty. Source Files ¶ View all Source files download.go Click to show internal directories. Click to hide internal directories.