gpython
gpython copied to clipboard
Instance variables
Is there a way to access instance variables from Python.
For example, say I have go struct:
type Point struct {
X int
Y int
}
Is there a way to access struct members in python:
print(point.X)
# or
print(point.x)