I have no working code to show the output. Requirement is to call this python module "pylib" from Go code. Many similar posts has suggested to use os/exec (declare .so in pythonpath) to call pylib as an external process. If such is a case, how to pass <string, object, object, dict> as arguments ? Should ..
I am new to Go programming. My current project requires me to access an external C++ function. I need to pass a value to the external function and used exec() to call the function. how to pass the mydata value to add function under cfolder ? package main import "C" import ( "os/exec" "fmt" ) ..
I have a sound file with the same "bip" sound at multiple times in the file. I am looking for a way to find the times for each occurences of this bip sound. I would like to find methods in both python and golang. In python maybe I could use librosa which seems a famous ..
Similar questions here How can I call linux shared library functions in Go? but too a beginner to understand it. I am a C programmer and learning Go in a hard way. Currently studying and porting an existing Python codes (python1.py and python3.py) to Go The existing Python files(along with delphi.cpp) have been compiled and ..
I’m trying to use the API of Soundpad, which is exposed via a named pipe. In Python, calling the API is as simple as import win32file handle = win32file.CreateFile( r’.pipesp_remote_control’, win32file.GENERIC_READ | win32file.GENERIC_WRITE, 0, None, win32file.OPEN_EXISTING, 0, None ) win32file.WriteFile(handle, str.encode("DoPlaySound(2)")) The specifics of the API do not matter for this question. What I do ..
sci-kit python random forest classifier has feature_importances_ How can I translate that method in Golang, in this library – https://github.com/fxsjy/RF.go/blob/master/RF/Tree.go#L69 Source: Python..
I have a slice of float64 which are readings from a sensor. The sensor samples at a rate of 300Hz. SO I get 300 samples per second. I want to resample the signal(slice of float64) so its around 120Hz or 120 samples per secoonds. I have my code in golang. Im looking for something like ..
Long story short, < and > arithmetic operation, from bash to c++ plus many other languages, we refer to less than and greater than respectively, like -lt, -gt, ::std::less, ::std::greater, but less and greater, they are not even an perfect pair out there, I, personally think we should take more if we insist using less, ..
I am very new to GO and I am trying to set up a very basic GO webserver and so far I have had no issues handling GET requests without any parameters, however now I am trying a POST request with some parameters and I am having two different issues depending on how I send ..
I have a Chaincode writer in Go, and I want to call a python function from Go to do some computation and return the result. But I used the code shown in picture, and there is an stand error, I don’t know the reason causing this situation, and how can I fix it? By the ..