2 ms·
The purpose was to not allow defining types which satisfy the interface outside the package. In this case they still want others to be able to use the values o
by Laremere 12y ago
The purpose was to not allow defining types which satisfy the interface outside the package. In this case they still want others to be able to use the values of the interface.
It's an uncommon thing to need to do, but this example shows that you can do it.