go-mruby
go-mruby copied to clipboard
Go (golang) bindings to mruby.
I want to execute compiled mruby code. For that, I think that support of the **LoadIrepFile()** function is necessary.
I read the doc, use `Hash.Get` to access values, but I can't find a way to convert to `Symbol`.
If not it'd be nice to have this as well.
At the very least I need `Add(item *mruby.MrbValue)`. Is this is problematic or simply unimplemented as it was not needed? cc @erikh
The tests do things like `LoadString("{}")`... is there a direct way for hashes and arrays? cc @erikh
``` go mrb := NewMrb() defer mrb.Close() proc, _ := mrb.LoadString(` Proc.new do puts 1 end `) val, err := mrb.Run(proc, nil) fmt.Printf("%#v, %#v", val, err) ``` **Expected:** Prints "1",...
As per the initial comment on #21 I noticed that `Decode` will not handle quite a few common cases where there may need to be some basic coercions. Of particular...
As per the discussion on #24, these types wrap the low level mruby types which bypass the `[]`, `[]=` etc methods that ruby users may expect to work. Raised here...