packasset

package module
v0.0.0-...-612a762 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 10 Imported by: 0

README

packasset

Build Status GoDoc

DESCRIPTION

  • the old go-bindata is no longer maintained.
  • It and has been forked several times.
  • I would love to migrate to the new go-bindata, but it does not support the CLI interface.
  • But I LIKE the CLI interface. :(

So here it is.

  • Pack static file assets into a byte array.
  • byte array contents are compressed

TODO

  • Store file metadata

Usage (CLI)

$ ls templates | packasset
$ packasset -input file.txt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(options ...Option) *Generator

func (*Generator) Generate

func (g *Generator) Generate() ([]byte, error)

type Option

type Option interface {
	Name() string
	Value() interface{}
}

func WithFiles

func WithFiles(l []string) Option

func WithPackageName

func WithPackageName(s string) Option

func WithStripPrefix

func WithStripPrefix(s string) Option

Directories

Path Synopsis
cmd
internal
tty

Jump to

Keyboard shortcuts

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