Closed lthibault closed 4 years ago
Upon further reflection, maybe it's best to make the REPL's print function configurable through a repl.Option
?
The "print" part of "REPL" seems important enough to warrant some degree of configurability, and I think this can be achieved while keeping the code simple:
repl.print
a struct field instead of a method.WithPrinter
option to the repl package.What do you think?
That makes sense. Current print can be set as default.
👍Ok, I'll whip something up this afternoon.
This is useful for printing stack traces from github.com/pkg/errors.