embed

command module
v0.0.0-...-5767a23 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2015 License: MIT Imports: 12 Imported by: 0

README

embed

Embed is a simple tool for embedding content in Go source.

Embed reads the input files and writes their contents as embedded data in one Go file per input file, by appending .go to the filename. Specifying -o overrides this by writing all files to a single output with the given name. Embed attempts to detect the package name but it can be specified with -package.

Example:

$ embed -o content.go -gzip -sha1 content/index.html content/style.css

Documentation

Overview

Command embed stores files as resources in Go source.

Embed reads the input files and writes their contents as embedded data in one Go file per input file, by appending .go to the filename. Specifying -o overrides this by writing all files to a single output with the given name. Embed attempts to detect the package name but it can be specified with -package.

$ embed -o content.go -gzip -sha1 content/index.html content/style.css

Jump to

Keyboard shortcuts

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