(w io.Writer)
| 368 | } |
| 369 | |
| 370 | func (is *indexSection) WriteTo(w io.Writer) (int64, error) { |
| 371 | if is.bytes == nil { |
| 372 | panic("indexSection must be Finalize()-d before calling Bytes()") |
| 373 | } |
| 374 | n, err := w.Write(is.bytes) |
| 375 | return int64(n), err |
| 376 | } |
| 377 | |
| 378 | // staging area for writing responses section |
| 379 | type responsesSection struct { |