A Go based wrapper to automate Cloudquery executions.
- https://medium.com/learning-the-go-programming-language/calling-go-functions-from-other-languages-4c7d8bcc69bf
- Parsing strings: ffi/ffi#585 (comment)
- https://gist.github.com/schweigert/385cd8e2267140674b6c4818d8f0c373
- https://guides.rubygems.org/specification-reference/#files
$ cd config/initializers/cloudquery
$ go build -o cloudquery.so -buildmode=c-shared cloudquery.go
# Test the file
$ ruby cloudquery.rb
block in ffi_lib': Could not open library './cloudquery.so': dlopen(./cloudquery.so, 5): image not found (LoadError)
- https://www.golangprograms.com/golang-import-function-from-another-folder.html
- https://progressivecoder.com/how-to-call-golang-function-from-another-directory-or-module/
ps auxwww | grep postgres