go backend: starting on translation of class into struct and methods.