3 ms·
> But unfortunately ... It is not due to some unkind turn of fortune that the Go type system drops the ball here and there. > However, If you just used a type
by tracked24x7 9y ago
> But unfortunately ...
It is not due to some unkind turn of fortune that the Go type system drops the ball here and there.
> However, If you just used a type alias then you'd be able to do either.
The important distinction between a type and an alias is that you can define methods for a type and you can not do the same for an alias.