gonutz / bin2go

Converts binary files to Go source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 91.5%Language:Shell 4.4%Language:Batchfile 4.1%