MCPcopy
hub / github.com/EverythingSuckz/TG-FileStreamBot / Write

Method Write

pkg/qrlogin/qrcode.go:31–38  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

29}
30
31func (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
40func printQrCode(data string, writer *CustomWriter) {
41 qrterminal.GenerateHalfBlock(data, qrterminal.L, writer)

Callers 3

GenerateQRSessionFunction · 0.95
EncodeToPyrogramSessionFunction · 0.80
PackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected