You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an issue with Golang-to-Python interoperability. Specifically, when I call a Python function from Golang and pass a []byte data as a parameter, the Python function unexpectedly receives an integer instead of the intended MengByte/bytes object.
I have the same issue. There are some examples in here, where Python functions are called from Go with arguments. Whenever I try to pass a struct or a map[string]string, Python would receive 1 as argument.
I "worked around" this by passing a string from Go, but it would be nice to learn how to reference Go types in Python.
I am facing an issue with Golang-to-Python interoperability. Specifically, when I call a Python function from Golang and pass a []byte data as a parameter, the Python function unexpectedly receives an integer instead of the intended MengByte/bytes object.
Code:
test.go
test.py
I would appreciate assistance in resolving this issue and ensuring that the Python function correctly receives the MengByte/bytes object.
The text was updated successfully, but these errors were encountered: