wwz

package
v0.0.0-...-0fb43f7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

README

wwz - work with zip 📁

Package for working with .zip files

import to progect:
import "github.com/nik19ta/go_server/api/wwf"
Funcs:
  • 🔓 Unzip(filename) - creates a folder(with the same name as the zip archive) and unpacks all the contents there.
  • 🔒 ZipFiles(zipname, files) - create new zip file and packs all files into it

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToZip

func AddFileToZip(zipWriter *zip.Writer, filename string) error

AddFileToZip insert file into zip Param 1 zipWriter Param 2 filename or path

func Unzip

func Unzip(src string) ([]string, bool)

Unzip will decompress a zip archive, moving all files and folders within the zip file (parameter 1)

func ZipFiles

func ZipFiles(filename string, files []string) error

ZipFiles - puck files

Types

This section is empty.

Jump to

Keyboard shortcuts

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