gobpack

command module
v0.0.0-...-e110218 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 8 Imported by: 0

README

gobpack

gobpack is a simple tool for packaging a collection of files into a distributable gob.

Description

I created gobpack to help bundle static assets for Gelyn's Edge into a separate, distributable binary. WebAssembly has restrictions on file access and bundling the assets alongside the game would negatively impact download speeds. This solution, although not perfect, serves my needs for now.

Installation

gobpack requires Go 1.18 or higher. Also ensure your $GOPATH/bin is in the global path.

To install:

$ go install github.com/kinesivan/gopack@latest

Usage

$ gobpack -h
Usage of gobpack:
  -e string
        comma-delimited string of allowed file extensions (default "png,jpg")
  -o string
        output file (default "out.gob")
  -p string
        path to folder containing files (default "./assets")
  -v    enable verbose logging
$ gobpack -p ./assets -o assets.gob

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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