go-python / go-python/gpython

Instance variables

Aperta
#196 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
1k
Fork
105
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Is there a way to access instance variables from Python.

For example, say I have go struct:

```go
type Point struct {
X int
Y int
}
```

Is there a way to access struct members in python:

```python
print(point.X)

# or
print(point.x)
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.