picopacker

command module
v0.0.0-...-85e56ec Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 4 Imported by: 0

README

picopacker GoDoc

Trivially small packer for Golang.

Reads a file into a Go string variable, effectively packing it into an executable/library at compile-time.

using

  • go get git.saucisseroyale.cc/delthas/picopacker
  • picopacker file.html file.go file
  • this will create a file named file.go in the current directory, containing a single string field named file containing the contents of file.html

you can also add go:generate commands for picopacker, e.g.:

//go:generate picopacker file.html file.go file
package stuff

// use file

license

MIT

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