gobundle

command
v0.0.0-...-414a959 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Command gobundle encodes filesystem files as Go source.

Usage:

gobundle [-package name] [-symbol name] [src]

If src is a directory, it reads all the plain files in src, recursively, and prints their contents to stdout as Go source. The generated file will define a single variable at package scope.

var Files = map[string]string{...}

The keys are file paths relative to src, and the values are the file contents.

It skips all special files.

If src is a regular file, it makes a single entry in Files using the base name of src as the key.

Flag -package controls the generated package name. (The default is "main".)

Flag -symbol controls the generated variable name of the map. (The default is "Files".)

Jump to

Keyboard shortcuts

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