Detect if the bytes to be printed is Binary or not.
(p []byte)
| 610 | |
| 611 | // Detect if the bytes to be printed is Binary or not. |
| 612 | func binaryFmt(p []byte) bool { |
| 613 | if len(p) > 0 && p[0] > 0x7F { |
| 614 | return true |
| 615 | } |
| 616 | return false |
| 617 | } |
| 618 | |
| 619 | func getReader(str string) *bufio.Reader { |
| 620 | return bufio.NewReader(strings.NewReader(str)) |
no outgoing calls