Skip to content

mateors/bin2go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bin2go

Converts binary files to go source code.

Usage

bin2go [-p <package>] [-l <bytes per line>] [-c] [-s] [-v <variable>] [-o <output file>] <file 1> <file 2> ...

Options:

-p: package name used in the Go file(s)
-l: bytes per line
-c: add comments to the end of each line, they are the bytes as characters
-s: use a slice ([]byte) instead of an array ([...]byte)
-v: variable name in the Go file(s)
-o: output file, this is only used if there is exactly one input file,
    otherwise the output file names are generated from the input file names

About

Converts binary files to Go source code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 91.5%
  • Shell 4.4%
  • Batchfile 4.1%