Interfaz GO
type Shape interface {
area() float32
perimeter() float32
}
SAMER SAEID
type Shape interface {
area() float32
perimeter() float32
}
type SDLDriver struct {
window *sdl.Window
renderer *sdl.Renderer
}
type NativeDriver struct {
someDataField *Whatever
}
type AnotherDriver struct {
someDataField *Whatever
}