An open API service indexing awesome lists of open source software.

https://github.com/lestrrat-go/packasset

Lightweight resource embedding utility for Go
https://github.com/lestrrat-go/packasset

Last synced: 12 days ago
JSON representation

Lightweight resource embedding utility for Go

Awesome Lists containing this project

README

        

# packasset

[![Build Status](https://travis-ci.org/lestrrat-go/packasset.svg?branch=master)](https://travis-ci.org/lestrrat-go/packasset)
[![GoDoc](https://godoc.org/github.com/lestrrat-go/packasset?status.svg)](https://godoc.org/github.com/lestrrat-go/packasset)

# DESCRIPTION

* the old [go-bindata](https://github.com/jteeuwen/go-bindata) is no longer maintained.
* It and has been forked [several](https://github.com/lestrrat-go/bindata) [times](https://github.com/tmthrgd/go-bindata).
* I would love to migrate to the new [go-bindata](https://github.com/tmthrgd/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
```