IsNoCompatiblePrinterError returns true if it is a not a compatible printer otherwise it will return false
(err error)
| 14 | // IsNoCompatiblePrinterError returns true if it is a not a compatible printer |
| 15 | // otherwise it will return false |
| 16 | func IsNoCompatiblePrinterError(err error) bool { |
| 17 | if err == nil { |
| 18 | return false |
| 19 | } |
| 20 | |
| 21 | _, ok := err.(NoCompatiblePrinterError) |
| 22 | return ok |
| 23 | } |
| 24 | |
| 25 | type PrintFlags struct { |
| 26 | JSONPrintFlags *JSONPrintFlags |