3 ms·
You generally try to design your list so it contains types with common methods by using an interface (not the any type interface{}, mind). You could have a lis
by Svip 8y ago
You generally try to design your list so it contains types with common methods by using an interface (not the any type interface{}, mind). You could have a list (slice or map) of io.Writer, where it can contain any type that implements Write([]byte) on itself.