inc

command module
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: MIT Imports: 11 Imported by: 0

README

inc Build Status

Embed binaries in Go programs the way I like it.

Why

Other solutions weren't to my liking, and I've been using embedded HTML/CSS/JS in a special way. I wanted to include a default option, and export those as templates for customisation by the user, so I found myself writing saving code a lot. This little utility embeds all that data and can optionally include a function to save it to a configurable path.

How

Run it with any number of files as arguments:

inc one.html two.css three.js

Or include save code:

inc -s one.html two.css three.js

Or make a list of files to include, perhaps generated from another pre-processor:

inc -l files.txt

Sav the resulting file to something other than embed.go:

inc -l files.txt -o files.go

Get the name and version of the program:

$ inc -V
inc v0.2.4

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