diff options
author | José Duarte <jmg.duarte@campus.fct.unl.pt> | 2020-10-30 14:28:44 +0000 |
---|---|---|
committer | José Duarte <jmg.duarte@campus.fct.unl.pt> | 2020-10-30 14:28:44 +0000 |
commit | da339ab12b6932169a7867a9ead9939ca8ac91a8 (patch) | |
tree | 3649a870debc6c44608ce159047ffd5595755967 | |
parent | 72ae9ca5981d078db821e0bbd2e281ab50f510d6 (diff) |
Update README
-rw-r--r-- | README.md | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -95,7 +95,7 @@ If `<USERDIR>/.cargo/bin` is part of the `PATH` environment variable, `hx` shoul ### output arrays in `rust`, `c` or `golang` -`hx` has a feature which can output the input file bytes as source code arrays. +`hx` has a feature which can output the input file bytes as source code arrays. For example: @@ -126,6 +126,15 @@ a := [3]byte{ } ``` +#### python array: -ap + +```sh +$ hx -ap -c8 tests/files/tiny.txt +a = [ + 0x69, 0x6c, 0x0a +] +``` + ## manual ```txt |