4 ms·
You can implement the interface from other packages through embedding type ColorWrapper struct { color.Color ... } ColorWrapper will i
by uluyol 3y ago
You can implement the interface from other packages through embedding
type ColorWrapper struct {
color.Color
...
}
ColorWrapper will implement color.Color. I don't know what the point would be, but another way to break the compile-time type safety.