Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsJSONStream ¶
IsJSONStream scans the provided reader up to size, looking for a json prefix indicating this is JSON. It will return the bufio.Reader it creates for the consumer. The buffer size will at either be the size of 'size' or the size of the Reader passed in 'r', whichever is larger. Inspired from https://github.com/kubernetes/apimachinery/blob/v0.21.0/pkg/util/yaml/decoder.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.