package zip

import "codeberg.org/anaseto/goal/archive/zip"

Package zip provides zip archive support for Goal.

Index

Functions

func Import

func Import(ctx *goal.Context, pfx string)

Import registers in the given Context the variadic functions from this package with default names and stores them into global variables. The following functions are defined:

zip.open[s] : open zip file at given path s and return a file system value.

zip.write[s;fs] : write file system value fs to new zip file named s.

A non-empty prefix can be provided, but "zip." is already a part of the default names, so it will be added as an extra prefix.

Source Files

zip.go

Version
v1.1.0 (latest)
Published
Feb 17, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
31 minutes ago

Tools for package owners.