{"modulePath":"github.com/readystackfree/cli","version":"v29.9.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package jsonstream\n\n## Functions\n\n```go\nfunc Display(ctx context.Context, in io.Reader, stream *streams.Out, opts ...Options) error\n```\nDisplay prints the JSON messages from the given reader to the given stream.\n\nIt wraps the [jsonmessage.DisplayJSONMessagesStream](/github.com/moby/moby/client/pkg/jsonmessage#DisplayJSONMessagesStream) function to make it \"context aware\" and appropriately returns why the function was canceled.\n\nIt returns an error if the context is canceled, but not if the input reader / stream is closed.\n\n## Types\n\n```go\ntype JSONError = jsonstream.Error\n```\n\n```go\ntype JSONMessage = jsonstream.Message\n```\n\n```go\ntype JSONProgress = jsonstream.Progress\n```\n\n```go\ntype Options func(*options)\n```\n\n```go\nfunc WithAuxCallback(cb func(JSONMessage)) Options\n```\n\n","path":"github.com/readystackfree/cli/internal/jsonstream","name":"jsonstream","synopsis":"","isRedistributable":true}
