helper

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidNarURL is returned if the regexp did not match the given URL.
	ErrInvalidNarURL = errors.New("invalid nar URL")
)

Functions

func NarInfoPath

func NarInfoPath(hash string) string

NarInfoPath returns the path of the narinfo file given a hash.

func NarPath

func NarPath(hash, compression string) string

NarPath returns the path of the nar file given a hash and an optional compression.

func ParseNarURL added in v0.0.2

func ParseNarURL(URL string) (string, string, error)

ParseNarURL parses a nar URL (as present in narinfo) and returns its components.

Types

This section is empty.

Jump to

Keyboard shortcuts

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