How to Pass Named Argument? #38
Closed
riko-finaccel
started this conversation in
Usage Discussions
Replies: 2 comments
-
Update: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, found this wonderful repo after searching on how to call python function in golang.
So, I got this working to do simple http call, but my question is on how to pass named arguments which is defined as kwargs in requests.request() method.
This is my implementation so far:
The problem is I need to pass headers and body to Post request, but using
CallMethodArgs
to invokerequests.request
, seems only allow 2 arguments, as I tried to pass empty dict, it will trigger segmentation fault.Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions