by n0w · 2y ago · 0 comments
I can't remember the specifics for why fields cannot be used within a Go interface but I do remember missing it a few times while writing Go code.
Struct field access is cheap, hopping through a dynamic dispatch table is less cheap.