zipper

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: MIT Imports: 13 Imported by: 0

README

Zipper

Go Report Card

Zipper is a tool to pack directories into go file.

Installation

go get -u github.com/gruzovator/zipper

Usage

Command to pack assets-src dir into assets/assets.go excluding bin dir and all txt file :

zipper -src assets-src -dest assets/assets.go -pkg assets -exclude bin/** -exclude **.txt

Output go file provides:

  • var ZippedFiles []byte
  • func NewZippedFilesFS() http.FileSystem

Exclude/Include patterns examples:

  • all txt files (including subdirs): **.txt
  • all txt files in base dir: *.txt
  • data dir: data/**

Patterns format description: https://github.com/gobwas/glob

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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