4 ms·
You can't put methods on a type from a different package (or in this case a builtin type). Instead of methods, you could of course write normal functions takin
by frou_dh 13y ago
You can't put methods on a type from a different package (or in this case a builtin type).
Instead of methods, you could of course write normal functions taking []string, but only methods can fulfil interfaces.