(maxBytes int)
| 63 | } |
| 64 | |
| 65 | func newCappedStringWriter(maxBytes int) *cappedStringWriter { |
| 66 | return &cappedStringWriter{maxBytes: maxBytes} |
| 67 | } |
| 68 | |
| 69 | func (w *cappedStringWriter) Write(p []byte) (int, error) { |
| 70 | if w.maxBytes <= 0 { |
no outgoing calls