pkgdownload

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Overview

Package pkgdownload provides interfaces and utility functions to download gno packages files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(pkgPath string, dst string, fetcher PackageFetcher) error

Download downloads the package identified by `pkgPath` in the directory at `dst` using the provided PackageFetcher. The directory at `dst` is created if it does not exists.

Types

type PackageFetcher

type PackageFetcher interface {
	FetchPackage(pkgPath string) ([]*std.MemFile, error)
}

func NewNoopFetcher

func NewNoopFetcher() PackageFetcher

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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