go-embed

command module
v0.0.0-...-845f3d7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

README

go-embed

Tool for embedding binary data in Go software.

It recursively scans the given input directory and puts all of the files it finds in a single .go file in base64 format. The embedded assets can be reached by calling assets.Get(), which returns a map[string][]byte.

An example:

assetMap := assets.GetAssets()
assetMap["css/bootstrap.min.css"]

Usage of the tool itself:

Usage of go-embed:
  -input string
    	input directory
  -output string
    	output file
  -pkg string
    	package name to use (default "assets")

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