Re:Golang Package: plugin
by gtrubetskoy on Thursday September 22, 2016 @06:46AM
(#12555886)
Curious what it would take (if at all possible?) to load such a .so from C. Because that would open the door for writing Go libs for all your favorite interpreted languages, web servers, etc.
[ Parent
| on HN ]
You can already create shared libraries that expose a C API using -buildmode=shared.
That's already possible, I've written an API that encapsulates Go libraries as Redis modules.
Re:Golang Package: plugin
by Goopplesoft on Thursday September 22, 2016 @07:48AM
(#12556137)
Link?
It's a WIP and I haven't had the time to complete it, but here it is. You can load modules, handle redis commands and return responses, but you can't access redis itself yet.
https://github.com/RedisLabs/rgm/blob/master/example/module....
here's a pretty cool example: https://blog.heroku.com/see_python_see_python_go_go_python_g...