utils

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTar

func ExtractTar(tarPath, destDir string) error

ExtractTar extracts a tar archive to the destination directory. It validates that no entries escape the destination via path traversal.

func MergeMap

func MergeMap(existing, add map[string]string)

MergeMap copies all entries from add into existing, overwriting duplicates.

func MergeMapWithPrefix

func MergeMapWithPrefix(prefix string, existing, add map[string]string)

MergeMapWithPrefix copies all entries from add into existing, prepending prefix to each key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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