embedcvt

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

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

Go to latest
Published: Jul 10, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

README

embedcvt

Command embedcvt creates a Go program file that embeds the contents of the specified asset file(s) as simple base64 constant that can be retrieved by calling a getter function unique to the asset.

Background

embedcvt is meant for simple data embedding use cases like inlining test data, inserting a few assets etc and does not do any compression, file system emulation, asset discovery etc. For more complex use cases, see tools like go-bindata.

Usage

embedcvt [-p packageName] asset1 [asset2]...

Options:
  -p string
    	package name for the generated Go program file. (default "main")
  asset string
    	paths to the files to embed (required)

Installation

go install github.com/srinathh/embedcvt

License

Apache 2.0 License

Documentation

Overview

Command embedcvt creates a Go program file that embeds the contents of the specified asset file(s) simple base64 constant that can be retrieved by calling a getter function unique to the asset. This is meant for simple data embedding use cases like inlining test data, inserting a few assets etc and does not do any compression, file system emulation, asset discovery etc. For more complex use cases, see https://github.com/jteeuwen/go-bindata.

Usage: embedcvt [-p packageName] asset1 [asset2]...

Jump to

Keyboard shortcuts

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