file2src

command module
v0.0.0-...-96dacae Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 6 Imported by: 0

README

file2src

Tool to encode a file as an array of bytes in a C/C++ or Go source file, to allow data files to be compiled in a executable

  Usage: file2src [options] <input file name> 
  
  Options:
  
  -P string
        text to be inserted at start of output
  -h    display help
  -l string
        language of src output (suppored: c, go) (default "c")
  -n string
        name of the created array (default "data")
  -o string
        name of output file. Output written to stdout if omitted
  -p string
        name of file to be insterted at start of output
  -t string
        type of the created array
  -z    place a Zero byte at the end of the data.
        Extends length of data by 1 byte.
        (useful for null terminating string data)

Version History

  • 0.1.0 Initial version

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