archive

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package archive bundles a directory of static files into a single byte stream (so it can be encrypted as one blob) and extracts it back into memory. It uses tar with no compression; only regular files are included.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(root string) ([]byte, error)

Create walks root and returns a tar stream of its regular files, keyed by forward-slash relative paths.

func Extract

func Extract(b []byte) (map[string][]byte, error)

Extract reads a tar stream into a map of clean relative path -> contents.

Types

This section is empty.

Jump to

Keyboard shortcuts

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