diff options
author | Emile <hanemile@protonmail.com> | 2020-02-22 13:41:22 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-02-22 13:41:22 +0100 |
commit | 4008dcd9d233019366ff8e59b0061baf2f37fbd4 (patch) | |
tree | ddcdb3351d240878ada4ecb608485239c21c9640 /r2pipe.go | |
parent | bf4e2f85e1b27a641568dc114d6990452ad8582d (diff) |
moved to src
Diffstat (limited to 'r2pipe.go')
-rw-r--r-- | r2pipe.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/r2pipe.go b/r2pipe.go deleted file mode 100644 index 977759d..0000000 --- a/r2pipe.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - - "github.com/radare/r2pipe-go" -) - -func main() { - // open a file - // $ r2 ... - r2p, err := r2pipe.NewPipe("/nix/store/xhwhakb1zcf5wl2a8575gcrnmbbqihm2-busybox-1.30.1/bin/ls") - if err != nil { - panic(err) - } - defer r2p.Close() - - // send a command - // [0x004087e0]> ... - buf1, err := r2p.Cmd("?E Hello World") - if err != nil { - panic(err) - } - - // print the result of the first command - fmt.Println(buf1) -} |