• orclev@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Basically because Go’s type system is garbage and interfaces are the one hammer it gives you for solving all problems. They’re literally the only way to do polymorphism in Go.