4 ms·
Not funny, kinda disastrous ;) The error interface's only member is `func Error() string`. If you want to do fancy things with errors rather than accumulate a
by marcus_holmes 5y ago
Not funny, kinda disastrous ;)
The error interface's only member is `func Error() string`. If you want to do fancy things with errors rather than accumulate a massive string then there is absolutely nothing stopping you. As long as you include a `func Error() string` in there too then whatever you implement will be perfectly compatible with the std library and any other Go code that uses errors.