|Christopher Ramey 3a5547bbae||1 year ago|
|README.md||1 year ago|
|main.go||1 year ago|
togo converts files to Go source code as a byte array. togo is based on (but is a complete rewrite of) Franco Lazzarino's togo.
togo is designed to be embedded in your Go project for a dependency free way to manage assets.
main.go from togo into a subdirectory in your
project (for example, a subdirectory named
Next, add comments to indicate to go generate that you wish to run your local copy of togo to build assets.
//go:generate go run ./togo -n Favicon_ico -i assets/favicon.ico -p static -o static/favicon_ico.go
togo takes some basic arguments:
|-p||generated package name|
|-n||generated variable name|
|-i||input file name|
|-o||output file name|