go backend: use dict literal in class body to typedef the attributes of self.