statikp

package module
v0.0.0-...-82897b7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: MIT Imports: 14 Imported by: 1

README

statikp

Build Status MIT License GoDoc

statikp means statik(packer|plus)

Description

generate zipped file for rakyll/statik.

Author

Songmu

Documentation

Overview

Package ziptree contains code to zip a directory tree and write it out.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FprintZipData

func FprintZipData(w io.Writer, zipData []byte) error

FprintZipData converts zip binary contents to a string literal.

func Run

func Run(argv []string, outStream, errStream io.Writer) error

func Zip

func Zip(srcPath string, opts ...Option) ([]byte, error)

Zip a directory tree

Types

type Option

type Option func(*config)

Option for zipping

func Compress

func Compress(f bool) Option

Compress is an Option to compress a zip or not

func FixMtime

func FixMtime(t time.Time) Option

FixMtime is an Option to fix mtimes of the file in the zip

func IncludeDotFiles

func IncludeDotFiles(f bool) Option

Compress is an Option to include dotfiles or not

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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