(p []byte)
| 29 | } |
| 30 | |
| 31 | func (w *CustomWriter) Write(p []byte) (n int, err error) { |
| 32 | for _, c := range p { |
| 33 | if c == '\n' { |
| 34 | w.LineLength++ |
| 35 | } |
| 36 | } |
| 37 | return os.Stdout.Write(p) |
| 38 | } |
| 39 | |
| 40 | func printQrCode(data string, writer *CustomWriter) { |
| 41 | qrterminal.GenerateHalfBlock(data, qrterminal.L, writer) |
no outgoing calls
no test coverage detected