I\'m writing a game in go. In C++ I would store all my entity classes in an array of the BaseEntity class. If an entity needed to move about in the world it would be a PhysEntit
Use a type assertion. For example,
original, ok := entity.(PhysEntity) if ok { println(original.b()) }