Skip to content

radare/v-r2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

radare2 bindings for V

CI

This repository contains the initial bindings of r2 for the V programming language.

Installation

$ v install radare.r2
$ v
>>> import radare.r2
>>> core := r2.new()
>>> print(core.cmd('?E Hello World'))
>>> core.free()

Example

module main

import radare.r2

fn main() {
  c := r2.new()
  print(c.cmd('?E Hello'))
  c.free()
}

or spawning:

module main

import radare.r2

fn main() {
  mut c := r2.spawn('/bin/ls', '') or { panic(err) }
  print(c.cmd('?E Hello'))
  c.free()
}

About

V programming language bindings for radare2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •