helper

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInputTooShort = errors.New("input is less than 3 characters long")

ErrInputTooShort is returned if the input is less than 3 characters long.

View Source
var ErrInvalidSizeSuffix = errors.New("invalid size suffix")

ErrInvalidSizeSuffix is returned if the suffix is not valid.

Functions

func FilePathWithSharding added in v0.0.12

func FilePathWithSharding(fn string) (string, error)

FilePathWithSharding returns the path to a file with sharding.

func NarInfoURLPath added in v0.0.12

func NarInfoURLPath(hash string) string

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

func ParseSize added in v0.0.11

func ParseSize(str string) (uint64, error)

ParseSize parses size with units and returns the same size in bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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