MCPcopy Index your code
hub / github.com/cli/cli / jsonArrayWriter

Struct jsonArrayWriter

pkg/cmd/api/pagination.go:154–158  ·  view source on GitHub ↗

jsonArrayWriter wraps a Writer which writes multiple pages of both JSON arrays and objects. Call Close to write the end of the array.

Source from the content-addressed store, hash-verified

152// jsonArrayWriter wraps a Writer which writes multiple pages of both JSON arrays
153// and objects. Call Close to write the end of the array.
154type jsonArrayWriter struct {
155 io.Writer
156 started bool
157 color bool
158}
159
160func (w *jsonArrayWriter) Preface() []json.Delim {
161 if w.started {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected