console icon indicating copy to clipboard operation
console copied to clipboard

Add console.ErrCtrC referenced in documentation

Open srliao opened this issue 1 year ago • 0 comments

The documentation mentions a console.ErrCtrlC for checking interrupts. However I noticed that said Err does not exist in console package.

This PR adds it in.

Alternatively, could consider modifying the documentation to give an example of how to detect Ctrl+C (i.e. new error from os.Interrupt.String())

srliao avatar Feb 07 '24 15:02 srliao