zipfile

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package zipfile provides functionality related to zip files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(filename string, files map[string]string) error

Create creates a zip file containing the given files.

files := map[string]string{
  "./testdata/create-1.txt": "f1.txt", // source file name : destination file name
  "./testdata/create-2.txt": "data/f2.txt",
}

err := Create("test.zip", files)

Types

This section is empty.

Jump to

Keyboard shortcuts

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